Finder "duplicate" requirements
Finder "duplicate" requirements
- Subject: Finder "duplicate" requirements
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 27 Jun 2015 23:38:03 +0900
I've been struggling all day with a "duplicate file" command that would work in some context and not in others.
It took me a search on the net to eventually realise that duplicate "preferred" aliases to posix files.
But I could not find anything in the Finder dictionary that indicated that.
So the question is: are there requirements for commands that are not indicated in the dictionaries/language reference but that we're supposed to know ? And if yes, how can we know about them ? Are there other official references somewhere on the net ?
Jean-Christophe
ps: the problem I had was that the following line:
set properties of (duplicate POSIX file "/Path/to/file/stuff.pages" to arbitrary_folder with replacing) to {locked:false}
would work pretty much all the time *except* when the line:
use framework "Foundation"
was somewhere in the script.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden