Re: MacOS X simple script error/subfolder
Re: MacOS X simple script error/subfolder
- Subject: Re: MacOS X simple script error/subfolder
- From: Philippe GRUCHET <email@hidden>
- Date: Fri, 14 Feb 2003 01:07:03 +0100
From: email@hidden
what about subfolders? I can't seem to figure out how define a path
(POSIX path?) to the subfolder I want.
Try this as startpoint:
set SubFolderPath to choose folder
-- returns full path to your selected folder as alias
-- example: alias "HD:Users:Shared:"
Then, do what you want with this 'SubFolderPath'.
Going a bit farther?
Example:
tell application "Finder" to (name of every folder of folder
"Applications") whose kind is not "alias" and kind is not "package
folder"
--> lists all subfolders of your "Applications" folder
As you can see, 'get' is optional:
Instead of writing
tell application "Finder" to get (name of every folder...
We write
tell application "Finder" to (name of every folder...
Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.