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

coercing results of UI elements to paragraph delimited list


  • Subject: coercing results of UI elements to paragraph delimited list
  • From: 2551 <email@hidden>
  • Date: Sat, 13 Jul 2013 18:57:58 +0700

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!



 _______________________________________________
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: "koenig.yvan" <email@hidden>
    • Re: coercing results of UI elements to paragraph delimited list
      • From: "koenig.yvan" <email@hidden>
    • Re: coercing results of UI elements to paragraph delimited list
      • From: Kaydell Leavitt <email@hidden>
    • Re: coercing results of UI elements to paragraph delimited list
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Next by Date: Re: coercing results of UI elements to paragraph delimited list
  • Previous by thread: Re: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Next by thread: Re: coercing results of UI elements to paragraph delimited list
  • Index(es):
    • Date
    • Thread