• 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
Fwd: Pb whith "path to" and "do shell"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Pb whith "path to" and "do shell"


  • Subject: Fwd: Pb whith "path to" and "do shell"
  • From: JM <email@hidden>
  • Date: Mon, 13 Dec 2004 17:50:00 +0100

Hi
Please I have a pb with this code, would you have an idea to help me ?

tell application "Finder"
set the ChoosenFolder to choose folder with prompt "Please pick The folder containing the folders to process :"
set the DestinationFolder to choose folder with prompt "Please pick the Destination Folder :"
delete every folder of the DestinationFolder
duplicate the ChoosenFolder to the DestinationFolder
set TheChoosenFolderName to the name of the ChoosenFolder
set MyList to every folder of folder TheChoosenFolderName of the DestinationFolder
repeat with i from 1 to the number of items in MyList
set ThisFolder to item i of MyList
do shell script " cd " & quoted form of POSIX path of ThisFolder
end repeat
end tell

it seems that the script can't get the path of ThisFolder !! Where is the mistake ?
Thanks
JM
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Pb whith "path to" and "do shell"
      • From: Christopher Nebel <email@hidden>
    • Urgent Help Quark Users
      • From: Jason Bourque <email@hidden>
  • Prev by Date: Re: Another way to open files? (Droplet script with Canon Canoscan Toolbox)
  • Next by Date: Urgent Help Quark Users
  • Previous by thread: Re: Re : Renaming file bug
  • Next by thread: Urgent Help Quark Users
  • Index(es):
    • Date
    • Thread