• 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: path to selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path to selection


  • Subject: Re: path to selection
  • From: Philippe GRUCHET <email@hidden>
  • Date: Fri, 7 Mar 2003 06:03:27 +0100

From: Simon Brown <email@hidden>
if selection = 1 then alias result
What does this line mean? I thought I always got a list, even if it's only got one item.

Oops, sorry Simon!
This line worked 'as is' OMM/10.2.4, just before going to bed :-)

Literally, it's a non-sense. So:

==================
tell application "Finder"
if selection = {} then return

set {theList, AppleScript's text item delimiters, textHolder} to {selection as list, ",", ""}

repeat with i from 1 to items's number in theList
copy ((theList's item i as alias) & return & textHolder) to textHolder
end repeat

set the clipboard to textHolder

set AppleScript's text item delimiters to ""
display dialog (textHolder as string) buttons {"OK"} default button "OK"
end tell
==================

Please, let me know if it works under 9.1.
Thanks!

Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: path to selection
      • From: Simon Brown <email@hidden>
References: 
 >Re: path to selection (From: Simon Brown <email@hidden>)

  • Prev by Date: Script Editor.crash.log
  • Next by Date: Move message to another mailbox behaves erratically?
  • Previous by thread: Re: path to selection
  • Next by thread: Re: path to selection
  • Index(es):
    • Date
    • Thread