Re: Move a sound file
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.