RE: "move" in OS X
RE: "move" in OS X
- Subject: RE: "move" in OS X
- From: Hellum Timothy <email@hidden>
- Date: Tue, 15 Apr 2003 14:36:57 -0400
Many thanks, Paul. We will look into your suggestion.
Timothy
---------------------------------------------------------------
The Globe and Mail
Canada's National Newspaper
Editorial IT Support
(416) 585-5168
www.globeandmail.ca
>
----------
>
From: Paul Berkowitz
>
Sent: Monday, April 14, 2003 4:57 PM
>
To: Applescript-Users
>
Subject: Re: "move" in OS X
>
>
On 4/14/03 1:32 PM, "John Delacour" <email@hidden> wrote:
>
>
> At 11:24 am -0400 14/4/03, Hellum Timothy wrote:
>
>
>
>> Hello,
>
>>
>
>> We are trying to migrate an OS 9 script to X and are having trouble
>
with
>
>> the "move" command. I hope that this question hasn't been asked too
>
much on
>
>> this particular issue, but I wonder if anyone might be able to poke a
>
few
>
>> holes in the following scripts to demo why it isn't working in X.
>
>
>
> What is copyFile? I see no handler with that label ?
>
>
It's a command from Jon's Commands. There were a lot of problems in
>
various
>
OS 8.x versions (maybe some 9.x too) with the Finder's move and copy
>
commands. Often the Finder would lag so far behind that the file would not
>
exist yet in the new folder when the next AppleScript line came due and
>
you'd error. So Jon's and Akua were much more reliable. (I see large
>
segments of script in a Finder tell block that use no Finder commands at
>
all, BTW. Possibly the Jon's and get info commands replaced earlier Finder
>
commands.)
>
>
The Classic Jon's you have won't work in OS X. There is a developer
>
version
>
of Jon's for OS X. But you shouldn't need it just or copying or moving or
>
deleting. This is one thing much improved in OS X (although some versions
>
of
>
AS in OS 10.0 and maybe 10.1.0 couldn't 'move'.)
>
>
Try changing those copyFile commands to 'duplicate' or 'move' as
>
preferred.
>
Similarly change 'deleteFile' to 'delete', but they must all be inside a
>
Finder tell block. If you really want to delete without putting in the
>
trash, you can use
>
>
do shell script "rm " & quoted form of POSIX path of file_to_move
>
>
>
>
>
>
--
>
Paul Berkowitz
>
_______________________________________________
>
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.
_______________________________________________
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.