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

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


  • Subject: Re: Pb whith "path to" and "do shell"
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 13 Dec 2004 10:01:39 -0800

On Dec 13, 2004, at 8:50 AM, JM wrote:

tell application "Finder"
...
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 ?

The problem is that "POSIX path" is only a property of aliases, not of Finder objects, which is what ThisFolder really is. Say "POSIX path of (ThisFolder as alias)" and it should work.



--Chris Nebel AppleScript Engineering _______________________________________________ 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
References: 
 >Fwd: Pb whith "path to" and "do shell" (From: JM <email@hidden>)

  • Prev by Date: Re: set the clipboard not available in in some apps (like Word)
  • Next by Date: Re: Urgent Help Quark Users
  • Previous by thread: Re: Urgent Help Quark Users
  • Next by thread: Error 19005 when saving quicktime movie
  • Index(es):
    • Date
    • Thread