is there a way to retrieve all the labels inserted into an object?
I want to create a generic function which will return all tags that are inserted into any object using the fooBar.insertLabel("key","value").
Pseudo code:
for each (key of foobar)
{
alert (key "->" + value)
}
I use CS 5.5.
Here is a generic function to extract all pairs of value of an object with a code showing how to use...
var vals = GetValuePairs(app.selection[0]); for(var x in vals){ alert(x + " is " + vals[x]); } function GetValuePairs(obj){ var file = File(Folder.temp + "/temp.idms"); obj.exportFile(ExportFormat.INDESIGN_SNIPPET,file); file.open('r'); var contents = file.read(); file.close(); var contXML = XML(contents); var vals = {} for each(var pair in contXML..KeyValuePair){ vals[pair.@Key] = pair.@Value; } return vals; }
Substances
Tags: InDesign
Similar Questions
-
Is there a way to detect all the keys that the user clicked in AS3?
Hi all
Quick question - is there a way to detect all the keys that the user clicked using the AS3 code? I have pimples on my project and I want to that they be disabled once the user has clicked on it, but I wonder if there is a function that I can write that will automatically disable all keys that the user clicked once?
Thank you!
Here is an example where the buttons share the same handler... try it and see if it works (I can't due to not having Flash on hand). The only problem that I could expect it not to love the evt.currentTarget is not identifiable as a particular class type, but sometimes it can't. If this is the case there is an easy solution.
Btn1.addEventListener (MouseEvent.CLICK, processBtnClick);
btn2.addEventListener (MouseEvent.CLICK, processBtnClick);
function processBtnClick(evt:MouseEvent):void {}
evt.currentTarget.removeEventListener (MouseEvent.CLICK, processBtnClick)
}
If you also want to keep track of which buttons were clicked already you can store in an array...
var clickedButtons:Array = new Array();
Btn1.addEventListener (MouseEvent.CLICK, processBtnClick);
btn2.addEventListener (MouseEvent.CLICK, processBtnClick);
function processBtnClick(evt:MouseEvent):void {}
evt.currentTarget.removeEventListener (MouseEvent.CLICK, processBtnClick)
clickedButtons.push (evt.currentTarget)
}
-
Is there a way to get all the names of collection under which an entity is attributed?
Is there a way to get all the names of collection under which an entity is attributed?
Hello
For a list of the collections which make reference to a specific entity, please refer to the following API request (see documentation of swagger producer-Service-entity ):
GET /publication/ {publicationID} / {entityType} / {entityName} / {referencingEntityType}
This request has been added to the content producer DPS2015 API examples, you can now use the getReferencing()function. Please see /article/get_referencing_entity.php for the complete example.
You can download the latest examples of producer API Content DPS2015 and swagger documentation from here, all the resources are in a file single zip.
-Mike
-
Is there a way retroactively copy all the text highlighted?
I pointed out the text in a pdf document without activating the function "copy the text selected highlight... ». Is there a way retroactively copy all the text highlighted?
Yes, it is possible to do it with a script (in most cases). I'll send you a PM with more details.
-
Is there a way to see all the emails today from my different e-mail accounts in Outlook?
For example, I have more than 10 accounts e-mail, and instead of the Inbox, click display all the e-mail now and then by clicking Inbox for the following e-mail account, is there a way to see all emails today to all my e-mail accounts 10 +? And if the answer isn't in Outlook, could you tell me another application that could do it please? Thank you.
Ask groups of Outlookhttp://answers.Microsoft.com/en-AU/Office/default.aspx#tab=3The integrated Vista Windows Mail program displays all accounts in one Inbox.--..--"Kim2theKiko" wrote in message news: 65d412c9-e571-496e-9 d 72-278d0fb323c9...> For example, I have more of e-mail accounts 10 and instead of click> Inbox, view all the email today and then clicking Inbox for the next> e-mail account, is there a way to see all emails today to all my> 10 + e-mail accounts? And if the answer isn't in Outlook, could you tell me> another application that could do it please? Thank you.> -
A customer has a script component that has a good amount of references hardcoded to embedded members. Is there a way to see all Member unrecognized at once without having to modify the script to each Member not recognized individually in order to validate again in order to see the next?
Joachim
not as far as I know :/
It was already like that in environmental assessments before Calc Manager.
-
Is there a way to extract all the text from the captivate course?
Hi all, someone can tell me if there is a way to extract all the text from a captivate file? We need to convert all the texts on the audio screen and insert audio into each slide... Thank you for all the input.
Hello
Try clicking on file > export > project captions and subtitles. Who should produce a Microsoft Word document.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
-
Is there a way to read all the music of a kind without creating a playlist?
Is there a way to select a genre in 'my music' and play all this music randomly. In its current form when I select the type tab in my music, he will show me all albums, but no way to play what he. I play all this create a playlist. The feature of the music has been removed in the latest version?
It seems to work for me. Go to the list of its kind. Tap on the work for the genre. This should start to play. You can then go to the bottom of the screen, tap the name of the song played to bring up the work and controls for this piece. You should see the icon at the bottom of the screen shuffle. Tap that.
-
Is there a way to delete all the files in the creative cloud instead of one?
Right now I'm having to go through each photo and send it to archive, then removes it from the archive. There must be a better way, but for the life of me, I have not been able to get out!
Yes, you don't have to do this 1 by 1.
The page of files to https://assets.adobe.com/files you want to switch the default view of the mosaic to the list. You will then be able to select all the photos and send them to the Archive. Then switch to Archive and permanently delete the items.
-
I need to be able to see samples of all colors I used in the site, and that I have not added to the Swatches palette.
It is tiresome to have to go to text links and sample from each of the 4 States... more there are others that I have probably forgotten.
Yes they save time.
Open any page of your site,
Open the swatches tab
Right-click on an empty area of the swatches tab and select "remove all unused."
Any color that remains is "used" somewhere on your site... Also note that changes to the color of this tab will automatically change any object of your site linked, for example, that all the Red objects can be quickly turned pink
-
Is there a way to flatten all the images and the text when you optimize?
I want to flatten all the images and text (not only those with transparency) in PDF files to ensure that no one can steal my images and work. Are there settings that I can choose when I save as optimized in Acrobat? This is on a Mac. Thank you.
Flattening, but you use that term, does not extract images from a PDF. You can apply security, products from Adobe that will prevent the extraction of content from a PDF file, but that's all. If it is in a document, it can be extracted.
-
Is there a way to develop all the options in the menu accordion?
I wish I had all the tabs in the menu expanded accordion. Y at - it a setting or a button to have all extended options? Thank you.
Thanks for trying to help people if I can, if you put all the years in an accordion rather than a series of accordions, then you could open/close the entire batch at once, this subject comprising the years in three accordions, 1998-2003, 2004-2009 (2010-2015), so at least theres a good piece of information available / visible to the departure?
-
Is there a way to delete all the duplicate both files in Vista?
My computer has managed to make duplicates (copies) of many of my files (including images and music). Is it possible to select all duplicates (in a folder or folders inside the computer) and remove them all at the same time? This would save a lot of time into the rail and selecting them one by one to remove. Copies take up a lot of space on my hard drive...
Thank you!
Hello
Here are several free utilities and they have all their benefits and their methods.
Auslogics Duplicate File Finder is the MD5 search engine that allows you to find duplicate
files content, without worrying other matching criteria. It would be useful, for example, when two
identical mp3 tracks or video files have different names
http://www.Auslogics.com/en/software/duplicate-file-Finderfind and delete the duplicate - free
http://www.easyduplicatefinder.com/
Versions Installer and PortableSearch files in doubles or similar - even binary - free
http://www.Joerg-Rosenthal.com/en/antitwin/quickly find all the files in a folder and its subfolders - free duplicate
http://www.Mindgems.com/products/fast-duplicate-file-Finder/fast-duplicate-file-Finder-about.htmDuplicate File Finder - Smart Port Forwarding - TCP Port Scanner - TCP Port Tunnel - multi-minuterie-free
http://www.brooksyounce.com/Duplicate File Finder software (pictures, mp3, iTunes)
http://www.Moleskinsoft.com/Hope these helps.
Rob - bicycle - Mark Twain said it is good.
-
I want to put all the photos in one file without any form of subfolders so that I can access it more easily in the future.
Click the Start button and click on your user name or photos.
On the right top of the page type jpeg in the box to search for files.
-
Is there a way to change all the variables of the form variables URLs?
Is it possible to change or copy all the variables in the url, so they have a scope limited as variables of form with a single statement?
For example:
< cfset form.var1 = url.var1 >
< cfset form.var2 = url.var2 >
< cfset form.var3 = url.var3 >
Is this possible with a single statement?
Have you tried:
OR
I'm not 100% sure that you can add to the scope of the form like that in all versions of the CF.
If not, you can work with a thrid variable that you incorperate both form and url variables in. It is a common technique in the fuse box, I think.
Maybe you are looking for
-
iPhone does not appear to find my iPhone after that they stole it
IPhone of my brother flew into the street and as soon as he told me, I tried to find my iPhone and I could find in my city. Today, he got an e-mail saying his apple id account has been used and mail tells us that it was close to a street called "Prec
-
HP Slate 10 HD 3609EA - do not load
Product purchased in January 2014. No problem until today where he "refuses" to reload. Have been many times around the support site and cannot find a solution. Is this the tablet to the fault or the charger? Help!
-
3D SONY BDV e390 House Blu-ray theater system
I have a sony bdv e390 3D House Blu-ray theater system but I do not have a remote control. How can I use? If it is not possible, where can I buy a remote control? Because we bought the system without remote control, I don't know how it happened.
-
HP notebook pro 655 g1: port of Dvd do not eject hp notebook pro 655 g1
I recently bought my hp laptop pro 655 g1 and the port dvd doesn't open, I do not know to open it as I press a button on the side, and nothing happens. Help please
-
Need to purchase replacement for 1336sa pavilion G6 keyboard
Hello I would like to know if I can replace my keyboard for a 1336sa g6 with any keyboard of series of g61300? Thank you