• 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: "koenig.yvan" <email@hidden>
  • Date: Sat, 13 Jul 2013 17:53:55 +0200


Le 13/07/2013 à 13:57, 2551 <2551phil@gmail.com> a écrit :

Friends

When exploring UI elements in AS Editor, the result typically comes back as something like this:

{menu bar item "Apple" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Scrivener" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "File" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Edit" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "View" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Project" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Documents" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Format" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Window" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Help" of menu bar 1 of application process "Scrivener" of application "System Events"}

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, i.e, like this:

{menu bar item "Apple" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Scrivener" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "File" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Edit" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "View" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Project" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Documents" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Format" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Window" of menu bar 1 of application process "Scrivener" of application "System Events”, 
menu bar item "Help" of menu bar 1 of application process "Scrivener" of application "System Events”}



Whenever I try the usual tricks, I always get back the error that I can’t coerce this result into a list, string, text, etc.

Thanks in advance!

If I understand it correctly, your question was ansered by :

-- By squaline (alias partron22?), emendelson, and Nigel Garvey.

in

http://macscripter.net/viewtopic.php?id=37674


KOENIG Yvan (VALLAURIS, France) samedi 13 juillet 2013 17:53:50


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

  • Prev by Date: Re: 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: Re: 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