• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting Returned Properties to the Clipboard or a Text Log
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Returned Properties to the Clipboard or a Text Log


  • Subject: Re: Getting Returned Properties to the Clipboard or a Text Log
  • From: Rick Gordon <email@hidden>
  • Date: Thu, 16 Aug 2007 13:22:43 -0700

Thanks, Ed. That's very cool.

-Rick

------------------

On 8/16/07 at 12:19 PM -0700, Stockly, Ed wrote in a message entitled
"Re: Getting Returned Properties to the Clipboard or a Text ":

>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

--

___________________________________________________

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

References: 
 >Re: Getting Returned Properties to the Clipboard or a Text Log (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Getting Returned Properties to the Clipboard or a Text Log
  • Next by Date: Re: Zip Multiple File Headaches
  • Previous by thread: Re: Getting Returned Properties to the Clipboard or a Text Log
  • Next by thread: Re: Getting Returned Properties to the Clipboard or a Text Log
  • Index(es):
    • Date
    • Thread