• 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: coercing results of UI elements to paragraph delimited list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coercing results of UI elements to paragraph delimited list


  • Subject: Re: coercing results of UI elements to paragraph delimited list
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 13 Jul 2013 22:23:38 +1000

On 13/07/2013, at 9:57 PM, 2551 <2551phil@gmail.com> wrote:

Is there some trick handler I can throw in the script so that what appears in the result window formats each comma delimited result on a new line

The "trick" is to use Script Debugger and its "pretty print" facility, which will return:

{
menu bar item "Apple" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "Finder" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "File" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "Edit" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "View" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "Go" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "Window" of menu bar 1 of application process "Finder" of application "System Events", 
menu bar item "Help" of menu bar 1 of application process "Finder" of application "System Events"
}

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: coercing results of UI elements to paragraph delimited list
      • From: 2551 <email@hidden>
References: 
 >coercing results of UI elements to paragraph delimited list (From: 2551 <email@hidden>)

  • Prev by Date: coercing results of UI elements to paragraph delimited list
  • Next by Date: Re: coercing results of UI elements to paragraph delimited list
  • Previous by thread: coercing results of UI elements to paragraph delimited list
  • Next by thread: Re: coercing results of UI elements to paragraph delimited list
  • Index(es):
    • Date
    • Thread