• 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: Display list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display list


  • Subject: Re: Display list
  • From: Barry Wainwright <email@hidden>
  • Date: Thu, 15 Nov 2012 11:57:18 +0000

No need to iterate the list like that - text item delimiters are much better for converting lists to text:

set theWholeList to {"A", "B", "C", "D"} # Your list of files
set oldDelims to AppleScript's text item delimiters # see note †
set AppleScript's text item delimiters to {return}
display dialog theWholeList as text buttons {"OK"} default button 1
set AppleScript's text item delimiters to oldDelims # see note †


†These lines are not strictly necessary to the operation of the script snippet, but many people consider it 'good technique' to preserve and reset the TIDs before and after use. Me? I prefer to set them before use and ignore them afterwards - never relying on them to hold any particular value except for what I have just set. For my use, I would therefore omit these two lines.


-- 
Barry

-- 
Barry

On 15 Nov 2012, at 10:47, Brian Christmas <email@hidden> wrote:


On 15/11/2012, at 9:28 PM, Jeremy Roussak <email@hidden> wrote:

Is there an easy way to display a list, akin to "choose from list" but without the choice bit? 

I want to show, for example, a list of files I have just processed, just for information.

Jeremy


Jeremy Roussak
email@hidden
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: Display list
      • From: Michelle Steiner <email@hidden>
References: 
 >Display list (From: Jeremy Roussak <email@hidden>)
 >Re: Display list (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Display list
  • Next by Date: Re: Display list
  • Previous by thread: Re: Display list
  • Next by thread: Re: Display list
  • Index(es):
    • Date
    • Thread