Re: Getting Returned Properties to the Clipboard or a Text Log
Re: Getting Returned Properties to the Clipboard or a Text Log
- Subject: Re: Getting Returned Properties to the Clipboard or a Text Log
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 16 Aug 2007 12:19:02 -0700
- Thread-topic: Getting Returned Properties to the Clipboard or a Text Log
Rick,
Here is a quick and dirty (very dirty) way to get that:
tell application "Adobe InDesign CS2"
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
try
set errorTrigger to load script vPropList
on error vPropList
set AppleScript's text item delimiters to "{"
set vPropList to every text item of vPropList
set vPropList to the rest of vPropList as string
set AppleScript's text item delimiters to "}"
set vPropList to text items 1 thru -2 of vPropList
set AppleScript's text item delimiters to "}" & return
set propertyText to vPropList as string
end try
end tell
end tell
return propertyText
_______________________________________________
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