deeply frustrating: how to copy/move a file from one place to another
deeply frustrating: how to copy/move a file from one place to another
- Subject: deeply frustrating: how to copy/move a file from one place to another
- From: Charles Arthur <email@hidden>
- Date: Mon, 2 Feb 2004 18:45:49 +0000
Yes, sounds obvious. And it was, as I recall, in the OS9 days.
However in X, unless I'm missing a seriously big trick, it's very hard to
say "Move this file to there".
I want to write a droplet so that files dropped on it will be moved to a
particular directory for a user. Vanilla AS. 10.3.
I've got as far as finding that I should be instructing System Events,
which has the "move" command:
move: Move object(s) to a new location.
move reference -- the object for the command
to location reference -- The new location for the object(s).
So if I want to move my file to what the for user is ~/Sites/LB/ , what's
the syntax?
Can it really be as simple as
on open(thefile)
tell application "System Events"
move thefile to "~/Sites/LB/"
end tell
end open
?
Thanks for help..
Charles
--
----------------------------
http://www.ukclimbing.com : 1200+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.