• 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: unixy paths to alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unixy paths to alias


  • Subject: Re: unixy paths to alias
  • From: "Gregory J. Smith" <email@hidden>
  • Date: Mon, 1 Aug 2005 22:52:38 -0600

OK, this is some other problem. If I use this script:

tell application "Finder"
    set folder_list to every folder of (choose folder)
end tell


I pick Macintosh HD (it really doesn't matter which folder I choose it always errors) I get this:

tell current application
choose folder
alias "Macintosh HD:"
end tell
tell application "Finder"
get every folder of alias "Macintosh HD:"
{folder "Applications" of startup disk, folder "Developer" of startup disk, folder "Library" of startup disk, folder "sw" of startup disk, folder "System" of startup disk, folder "Users" of startup disk}
get folder "Applications" of startup disk
folder "Applications" of startup disk
"Can't make «class cfol» \"Applications\" of «class sdsk» of application \"Finder\" into the expected type."


What I don't understand is why I have another script that uses this exact same code and it does not error.


Gregory J. Smith email@hidden http://homepage.mac.com/gregjsmith _______________________________________________ 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
  • Prev by Date: SetVisibleInTiger
  • Next by Date: Re: Remove Fields From Record?
  • Previous by thread: Re: SetVisibleInTiger
  • Next by thread: Vacation
  • Index(es):
    • Date
    • Thread