• 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
deeply frustrating: how to copy/move a file from one place to another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: deeply frustrating: how to copy/move a file from one place to another
      • From: Walter Ian Kaye <email@hidden>
    • Re: deeply frustrating: how to copy/move a file from one place to another
      • From: Doug McNutt <email@hidden>
    • Re: deeply frustrating: how to copy/move a file from one place to another
      • From: Michelle Steiner <email@hidden>
    • Re: deeply frustrating: how to copy/move a file from one place to another
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Illustrator has placed images that need to be embedded
  • Next by Date: Re: deeply frustrating: how to copy/move a file from one place to another
  • Previous by thread: Re: Illustrator has placed images that need to be embedded
  • Next by thread: Re: deeply frustrating: how to copy/move a file from one place to another
  • Index(es):
    • Date
    • Thread