• 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: "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

  • Follow-Ups:
    • Re: Getting Returned Properties to the Clipboard or a Text Log
      • From: Rick Gordon <email@hidden>
  • Prev by Date: Re: Changing ownership of a folder and all contents
  • Next by Date: Re: Getting Returned Properties to the Clipboard or a Text Log
  • Previous by thread: 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