• 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: applescript-users digest, Vol 3 #1413 - 6 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 3 #1413 - 6 msgs


  • Subject: Re: applescript-users digest, Vol 3 #1413 - 6 msgs
  • From: admin <email@hidden>
  • Date: Wed, 5 Mar 2003 12:32:01 -0600

On Wednesday, March 5, 2003, at 12:00 AM, email@hidden wrote:

I then tried a longer route for this task, with the following:
tell application "Finder"
activate
set drvName to (name of every disk whose name begins with "Heinz")
select disk (drvName)
open selection
set fldrName to (name of every folder of disk drvName whose name starts
with "Heinz List")
duplicate fldrName to "Macintosh HD:Heinz" with replacing

Assuming that there is only one folder whose name starts with "Heinz List", I think this needs to be:
duplicate folder fldrName to "Macintosh HD:Heinz" with replacing
since fldrName contains the name of the folder, not a reference to a folder. If there is more than one folder matching the selector, then you need to iterate through the list, but you still need to prefix the name with folder or it won't work.


close container window of disk drvName
end tell
but that got the same result, with or without "with replacing".

"The reaction of the clueless masses is to grumble and crack wise and then meekly accept the commands of our techie masters."
- Marc Fisher, Washington Post Metro column Thursday, February 6, 2003
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: [ADMIN] Comments about digest size?
  • Next by Date: Re: Extracting attachment from Mail
  • Previous by thread: Re: Comments about digest size
  • Next by thread: Re: replacing text - solved
  • Index(es):
    • Date
    • Thread