• 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: Move a sound file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move a sound file


  • Subject: Re: Move a sound file
  • From: John Delacour <email@hidden>
  • Date: Fri, 2 Aug 2002 16:31:22 +0100

I wrote:

on open {ls}
set ls to selection of application "Finder"
repeat with f in ls
set f to "'" & POSIX path of (f as string) & "'"
do shell script " cd; cp " & f & space & "'Library/Sounds/' "
end repeat
end open



Now either I'm going mad or the open handler in a droplet does not accept a list of arguments...


Ah! I see the open handler behaves differently in a froplet (TM) and mustn't have the argument bracketed. I probably knew that once but with all this wonderful online documentation in Applecript .... !

on open ls
repeat with f in ls
set f to "'" & POSIX path of (f as string) & "'"
do shell script " cd; cp " & f & space & "'Library/Sounds/' "
end repeat
end open
_______________________________________________
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: Move a sound file
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: Any scripters from Montreal?
  • Next by Date: Re: save documents problem (reprise)
  • Previous by thread: Re: Move a sound file
  • Next by thread: Re: Move a sound file
  • Index(es):
    • Date
    • Thread