Re: INDESIGN CS2: Altering a Text Selection
Re: INDESIGN CS2: Altering a Text Selection
- Subject: Re: INDESIGN CS2: Altering a Text Selection
- From: Buzz Hill <email@hidden>
- Date: Fri, 11 Aug 2006 17:16:25 -0700 (PDT)
Running Kai's script ...
tell application "Adobe InDesign CS2"
tell document 1
set selection to text from character 1
of selection to character -2
of selection
end tell
end tell
... generates the following error:
"Adobe InDesign CS2 got an error: Invalid value for
set property
'selection'. Expected object, list of objects or
nothing, but received
nothing."
Rick,
I believe that the selection is a property of the
application not of the document. This works perfectly
for me.
tell application "Adobe InDesign CS2"
set selection to text from character 1 to character
-2 of selection
end tell
Buzz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden