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: "Jeffrey Berman (jberman)" <email@hidden>
- Date: Sun, 23 Nov 2008 17:42:24 -0600
- Acceptlanguage: en-US
- Thread-topic: Finder Copy to 'Cleanup At Startup' Folder in Leopard
On 11/23/08 3:31 PM, Philip Aker <email@hidden> wrote:
> 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:
Thanks for your response. I had already been planning to switch to a Unix
command if Leopard no longer permits Finder copying to the 'private'
folders. However, I was wondering whether this is a known limitation with
AppleScript in Leopard. Anyone know?
-Jeffrey Berman
_______________________________________________
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