How to give orders to elements of a list (Applescript)
Hello
I'm confused by something I saw in the indesign scripts. I make a list of items from a selection page, then sorting into sublists, each of the whish I would like to place orders. Once I've made lists, however, I always get an error if I try to place an order in this list.
Here's a condensed example:
say application "Adobe InDesign CS5. set itemList to the selection game list1 to {point 1 itemList, point 2 itemList} game list2 to {point 3 itemList, point 4 itemList} dire list1 set name to "test" end tell end say
or
say application "Adobe InDesign CS5. set itemList to the selection game list1 to {point 1 itemList, point 2 itemList} game list2 to {point 3 itemList, point 4 itemList} value name of list1 to 'test '. end say
both give me an error, but if I tell the selection itself (also a list, right?) it works, for example:
say application "Adobe InDesign CS5.
value name of selection of 'test '.
end say
or, infuriatingly:
say application "Adobe InDesign CS5. set itemList to the selection game list1 to {point 1 itemList, point 2 itemList} game list2 to {point 3 itemList, point 4 itemList}
select list2
value name of selection of 'test '.
end say
If I can choose the elements using a list, but not much.
Anyone know what is happening here?
Thank you.
You cannot send a command to a list; your script is seen as trying to put the name of a list, and which cannot be done.
Once you start address selection, you are addressing a single InDesign identity - the fact that it returns a list of elements is irrelevant.
Tags: InDesign
Similar Questions
-
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
"This problem that I've seen before - corrupted metadata in a recorded TV file causes MC to Issac when you click on" show in the list.
And, it is useful to know that show is the cause. :)
Solution: Close Media Center. Open an Explorer window and go to C:\Users\Public\Recorded TV. Find the offending file, and either move it to another folder (unless it is a 'protected' program, you can always watch it in Media Player), or delete.
The file name format is: showname_network_starttime(where starttime is presented as dd_mm_yyyy_hh_mm_ss (24hours). wtv)HTH,
ChrisMS - MVP (Media Center) [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]
-
How to get the first element of a list?
Hello
I have the following hierarchy:
A (first level)
-A1 (A child)
-B1 (A child)
-B11 (B1 child)
-B12 (B1 child)
I have a UDA on B11 and B12 members who have the same name as the A1, and I want to assign values to A1 to B11 and B12. After that, I want to consolidate the hierarchy so I can have B1 and with values.
I would like to use the ancestors function to do but the ancestors need a member as a parameter and the only relationship between A1 and B11, B12 is the UDA.
I can't do @ANCESTORS (@UDA (%{dimname/}, 'A1')) because of this, so I would use a function to get at least 1 member with the UDA, I want and use ancestors on this subject, but I can't seem to find a function that returns the first member of a list.
Can someone help me on this?
Thank youBummer, I finally shot to the top of my 11.1.2.1 instance of cloud and tried. You have (unfortunately) reason - I can spend real members names in @LANCESTORS and use it outside of a DIFFICULTY, but the minute I put in @ATTRIBUTE or @UDA he has poured out. Disappointment, because I thought that was a really cool thing.
I think still if you know z is always the parent you want to consolidate, a @IDESCENDANTS("Z") would do the trick, but maybe with inefficient - certainly less than a full size AGG.
Kind regards
Cameron Lackpour
Published by: CL 4 June 2012 10:13
Arrgh, and it's in the docs with underlining added by me:
If the function @LANCESTORS is used alone (not in a statement to FIX), you must use the function @LIST and specify names of members. -
: last-child vs: first child - how to isolate the last element in a list?
http://mayakaimal.BusinessCatalyst.com/index
In an attempt to remove the red dot the last item in the list, I added this to the css:
#menu ul > li a: last child, #menu ul > li a: hover: last-child {background: #fff ;}}
I don't understand why this removed the point of the FIRST item in the list, as well. I have to specify a new first child selector?
MOOKIE
-Change
#menu ul li + li + li + li + li + li + li a {background-color: #FFF ;}}
on this subject.
#menu ul li + li + li + li + li + li + li a {background-color: #FFF; background-image: none ;}}
-
I had to order Photoshop Elements - and choose Mac, but during the next steps, he switched to Windows. It must be possible to return to Mac, - how? I have not downloaded the program.
you need a mac serial number. If you have received
Available downloadable Setup files:
- Suites and programs: CC 2015 | CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
- Acrobat: DC, XI, X | 9,8 | 9 standard | 8 standard
- Captivate: 8 | 7 | 6 | 5.5, 5 | 1
- Cold Fusion: 11: 10 | 9.0.2 version 9.0.0, 9.0.1, 8.0.1, 8.0.0, 7.0, 6.1, 6.0, 5.0, 4.0
- Contribute: CS5 | CS4, CS3 | 3,2
- FrameMaker: 12, 11, 10, 9, 8, 7.2
- Lightroom: 6| 5.7.1| 5 | 4 | 3
- Photoshop Elements: 14,13,12,11,10 | 9,8,7 win | 8 mac | 7 mac
- Premiere Elements: 14,13,12,11,10| 9, 8, 7 win | 8 mac | 7 mac
Download and installation help links Adobe
Help download and installation to Prodesigntools links can be found on the most linked pages. They are essential; especially steps 1, 2 and 3. If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".
-
How to give a Kudos or mark a post as solved?
How to give a Kudos or mark a post as solved? In my time on forums asked me how to do this a few times, different, and I expected to find a tutorial on how to do it. Unfortunately no tutorial was not found, so I decided to make a.
It is very important to solutions of marking as resolved. It lets other users know that a solution was found to the problem, so if they have the same problem, they can find the answer more quickly.
Bravo to give, it is just as important, but for a different reason. Most of the users who help the people of this community are volunteers. Get a Kudos is the only form of compensation they receive. They are not paid for this, and giving Kudos is just a nice way to say thank you to the volunteers for a helping hand.
The procedure for a resolved marker differs according to who you are.
1. If you come from the thread (this means that you are the creator of the thread), then all you have to do is click Black accept as a Solution button (see image below) on the job that help you solve the problem.
2 If you have joined a thread that did not have a solution yet (which means that you have found a thread with a similar problem like yours where a solution has not been found), you will not be able to use the accept as Solution button. You will need to get a moderator in order to mark the thread for you, or wait as the creator of the thread mark. To ask a moderator to mark the thread as solved, click content inappropriate the report link under the username of the person you want to get credit, and ask the moderators to mark the post as solved (see image below).
The process of giving someone a Kudos for an answer that you loved is quite simple. All you have to do is click on the star above the word Bravo under their user name (see image below).
I hope this helps.
-
I got a new PC and I don't know how to download Adobe Premiere Elements
Hi, I'm French,
I got a new PC and I don't know how to download Adobe Premiere Elements I bought on my other PC and I don't have serial number
But maybe gives you the credit card I used + my account to identify could help?
While it depends on which version you need to download, most older versions are available through the following page. https://helpx.Adobe.com/download-install.html
Do not share your credit card information in a public forum!
You should be able to find your serial number through your Aeobe account online. It should be listed under your product if you previously registered
-
How can I configure the element with the script names?
Could Hello someone give me a hand?
I created symbols on the stage of this script below.
------------------------------------------------------
for (k = 0; k < 5; k ++) {}
sym.createChildSymbol ("mySymB", "Stage");
}
------------------------------------------------------
How can I configure the element with the script names?
Because, when I try to control a symbol by using the getSymbol("---") command.
I need to know the name of the item given to each symbol.
Concerning
Yes, you're right.
Using 'Code-Example' If you write sym.getSymbol ("mySymB") that edge returns the undefined value.
With "Drag-and-drop-Example", you can use sym.getChildSymbols ().
-
How can I order by alphabet created list on a menu drop-down?
How can I order by alphabet created list on a menu drop-down?
Click the cell that contains the data of cell format pop-up menu. On the cell on the right Panel tab, you will see these menu items. Drag to reorder alphabetically. There is no provision to automatically sort this list of menu items.
-
i mac OSX10-9-5 2015. How can I order i-Tunes DOES NOT close automatically after 30 minutes... Despite having put in place to save energy to stay active for 2 hours?
To the best of my knowledge iTunes has all of the features that could stop him. What make you believe it's iTunes rather than some other power saving feature? What happens exactly 30 minutes? It's happens during playback video or audio?
TT2
-
How can I order Windows Vista recovery disk for pavilion m9515y
Hello
I have a Pavilion m9515y desktop which had Windows Vista. The hard drive has crashed and I have no recovery disks. I tried to find a place to order the disks in the support area, but recovery discs are not one of the options.
Please let me know how I can order them
Here is the information for the computer:
Pavilion m9515y
Nc695AA prod # #ABA
Thank you
Brian Cox
Hi, Brian:
You can order for your model of HP recovery disks by clicking on the link below and then clicking on the link order recovery media.
If for some reason, the link doesn't work (happens sometimes), just call HP technical support and order a game by phone.
-
How to give a default file path
Hi all
How to give a default path for a vi... It should take path to the deffault d without a prompt and writing the desired string to this place... I gud get default file path option... but later realized that there is no file created in this place
Thank you
Here you go...
Sorry I made the error I said others...
The VI attached is in LV 8.0 (so that only I could save)...
-
How to give full access to the port to laptop
Hello! I need help.
I get data using xbee connected to the port of the laptop. The problem is with the increase of baud rate, time of receipt does not increase as it is.
My instructor told me that your com port does not provide complete space to your software (LabVIEW). My question is how to give full access to the com port to LabVIEW? Kindly help...Here's my vi... I put the 115200.But baud rate in labview so I get the data and it intrigues, it traces precisely after 8 seconds. But I put the shipment time less than 8 seconds, it does not trace accurately.
-
How to give permissions to the user for the administrator.
I work in an organization. We use Windows XP with SP2. I delete the administrator user rights. At that time, some user systems have it problems.that's files and folders are not able to move, copy, cut, delete, all permissions are deleted. Please tell me how to give these permissions (move, copy, cut, delete) for the user's systems.
This article explains how to set file access permissions:
"How to set, view, change, or remove special permissions for files and folders in Windows XP"
<>http://support.Microsoft.com/kb/308419 >HTH,
JW -
How to give a limitation of internet access to users via gpedit.msc?
How to give a limitation of internet access to users via gpedit.msc
Hello
Follow the below mentioned article:
How to use the Group Policy Editor to manage the Local computer policy in Windows XP: http://support.microsoft.com/kb/307882
Maybe you are looking for
-
Re: Satellite A200 doesn't turn on
Hello I have a Satellite A200-23V. All of a sudden, he lost his power while using it. Then it turns on again. I already removed the battery - only the power supply is connected, but still it won't turn. I don't know what happened. Someone at - he had
-
IR remote control does not work with the new imac
IR remote control does not work with the new iMac. From 24 "2007 machine to last 27"
-
You can grab a copy of the Original Microsoft operating system?
HI: My Dell Dimension 3000 had Windows XP Home on my hard drive and it destroys itself. I bought a new hard drive and he would reinstall from the restore disc. Unfortunately as it was for many years the restoration dischas moved. I still have the
-
0xc8000247 windows update does not work.
Already tried many. found a FIX via http://support.microsoft.com/kb/2470478 , it looked like my problem. but did not work Location: Error in the hard drive of December 2010. HD has replaced by one with a higher capacity. After that, in Outlook to ind
-
I am trying to open my Security Center, adobe reader opens and says this isn't a supported file or it has been damaged in an e-mail attachment that has not been decoded correctly, this happens when I try to open any program