Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
- Subject: Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
- From: Philip Aker <email@hidden>
- Date: Sun, 23 Nov 2008 13:31:44 -0800
On 2008-11-23, at 12:16:45, Jeffrey Berman (jberman) wrote: I have been using a script under Tiger (10.4.11) that uses the Finder to copy an item to the 'Cleanup At Startup' folder as follows:
set CleanupFolder to path to "flnt" as string duplicate folder FolderName to item CleanupFolder with replacing
When I try to run the same script with Leopard (10.5.5), the script stops with an error message indicating that the Finder cannot make the destination specification into type folder.
Is there a limitation to Finder copying to the hidden 'private' folders in Leopard?
Good question. Because of the increasing restrictions due to the aggressive security policies being put in place lately, I wouldn't be surprised. The following works form me on Leopard. I expect it will work on Tiger (but have not tested directly):
set garbage to POSIX path of ((path to desktop as text) & "garbage") set flnt to POSIX path of (path to "flnt") do shell script "mv -f " & quoted form of garbage & space & quoted form of flnt
Philip Aker
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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