Finder acting up
Finder acting up
- Subject: Finder acting up
- From: Autocat <email@hidden>
- Date: Tue, 21 Dec 2004 21:36:08 +0100
Hi there,
I'm having a bunch of problem scripting the Finder (this is under
10.3.6 & 10.3.7)
duplicate theFile to theDestinationFolder with replacing
Just doesn't duplicate if there's already a file with the same name in
the destination folder. Same problem is I use move instead of duplicate
(the destination folder is on a local hard disk)
Also, I spent a great deal of time trying to determine if a folder
exists, and create one if it doesn't. I tried the various "folder
exists" syntaxes to no avail.
The only way to do that was to use the try/on error mechanism
try
set theDestinationFolder to gPathToRootPDFFolder & ":" &
theSubFolderName as alias
on error errorMsg
make new «class cfol» of (gPathToRootPDFFolder as alias) with
properties {name:theSubFolderName}
set theDestinationFolder to gPathToRootPDFFolder & ":" &
theSubFolderName as alias
end try
Also, the only way to create a folder was to use this <<class cfol>>
Is the Finder's AS dictionary broken or something, or is it just me ?
Thanks very much for any help
Laurent Humbert
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden