Re: deeply frustrating: how to copy/move a file from one place to another
Re: deeply frustrating: how to copy/move a file from one place to another
- Subject: Re: deeply frustrating: how to copy/move a file from one place to another
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 2 Feb 2004 12:10:01 -0800
At 06:45p +0000 02/02/2004, Charles Arthur didst inscribe upon an
electronic papyrus:
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).
You have to use the Finder, as it ain't wired up in System Events yet.
(See below.)
From: Christopher Nebel <email@hidden>
Subject: Re: Duplicating in System Events
Date: Tue, 13 Jan 2004 22:06:54 -0800
To: AppleScript Users <email@hidden>
On Jan 13, 2004, at 6:15 PM, Hanaan Rosenthal wrote:
I was meddling with the System Events dictionary and encountered a neat
variation of the Finder's duplicate command:
duplicate: Copy object(s) and put the copies at a new location.
duplicate [reference] -- the object for the command
to location reference -- The location for the new object(s).
[with properties record] -- Properties to be set in the new
duplicated object(s).
I like the ability to set the properties of the duplicated file (such
as name), but I don't like the fact that... it doesn't seem to work.
Does anyone knows if this feature works at all? (Chris?)
Nope. You're seeing the default version from the Standard Suite,
but disk-folder-file objects don't pay any attention to it. There's
a bug filed.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.