• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
echo email@hidden@nl | tr a-z@. p-za-o.@

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

  • Follow-Ups:
    • Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
      • From: "Jeffrey Berman (jberman)" <email@hidden>
References: 
 >Finder Copy to 'Cleanup At Startup' Folder in Leopard (From: "Jeffrey Berman (jberman)" <email@hidden>)

  • Prev by Date: Finder Copy to 'Cleanup At Startup' Folder in Leopard
  • Next by Date: Re: Getting list of items from network slow
  • Previous by thread: Finder Copy to 'Cleanup At Startup' Folder in Leopard
  • Next by thread: Re: Finder Copy to 'Cleanup At Startup' Folder in Leopard
  • Index(es):
    • Date
    • Thread