Getting Returned Properties to the Clipboard or a Text Log
Getting Returned Properties to the Clipboard or a Text Log
- Subject: Getting Returned Properties to the Clipboard or a Text Log
- From: Rick Gordon <email@hidden>
- Date: Thu, 16 Aug 2007 11:33:36 -0700
I'm trying to devise a script that will not be run from within Script Editor (will be run from the InDesign Scripts palette) which would allow me to get the properties of a selected object.
What I can't figure out is how to get a textualized form of the properties record (like the text that is printed in Script Editor's Result window) that I could route to the clipboard or to a text file. So far, I get errors that AppleScript can't convert the chevroned Apple Events into a list or text format.
I don't want to have to parse each record field individually and with foreknowledge. I just want access to a textualized form of the results. It occurred to me to pass the script to Script Editor and then script the result window to be copied, but I'm not figuring out how to do that, either. Script Editor's dictionary is kind of minimal.
The core of the script idea is as follows:
tell application "Adobe InDesign CS3"
try
set vSelection to object reference of selection of active document
on error
display dialog "Could not get selection of active document." buttons {"OK"} default button "OK"
return
end try
tell vSelection
set vPropList to get properties
--Do what I need to do here to massage the results to be handled by TextCommands.app
tell application "TextCommands"
set vJoinedList to join vPropList as list using {return} --NOT WORKING
end tell
end tell
end tell
Any ideas? Thanks.
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden