• 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 15:55:55 +0100

At 6:50 pm -0400 1/8/02, Rob Jorgensen wrote:

I want to create a droplet which will move a file to the system's Sound folder so that it can be used by Eudora. When I attempt to do this in the Finder, I get a dialog that says the folder can't be modified.

Can this be done with AppleScript and Terminal, or some other combination that can be wrapped up in a droplet? If so, complete code would be greatly appreciated.

You should save your sounds in your own Library/Sounds/ folder and not in the system's library. This droplet works and would probably work with the system library.


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

It looks as if an awful lot of AppleScript is broken since the version I've been working with in 7.6 and 8.6. Things seem to have got worse and worse from the time Applescript was first introduced. Every new version is buggier than its predecessor, we have a Script Editor that has had nothing fixed for more than ten years (32K window, bad display of dictionaries, including a new bug that means you need to move the window to read it, no scriptability etc. etc.)

Now either I'm going mad or the open handler in a droplet does not accept a list of arguments but accepts only a single file. I've been trying for over an hour to get it to work and the above script ought not to need the first line.

This works, and the equivalent should work in a droplet

set vList to {1, 2, 3}
open {vList}
on open {ls}
repeat with n in ls
display dialog n
end repeat
end open


JD
_______________________________________________
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>
    • Re: Move a sound file
      • From: Paul Berkowitz <email@hidden>
    • Re: Move a sound file
      • From: Mr Tea <email@hidden>
References: 
 >Move a sound file (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Why root?
  • Next by Date: Re: Any scripters from Montreal?
  • Previous by thread: Re: Replying to the list in Eudora
  • Next by thread: Re: Move a sound file
  • Index(es):
    • Date
    • Thread