• 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: MacOS X simple script error/subfolder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: 10.2.4 PDF Workflow Feature
  • Next by Date: eudora connect script
  • Previous by thread: Re: 10.2.4 PDF Workflow Feature
  • Next by thread: trying to track down EntourAid or utility like it.
  • Index(es):
    • Date
    • Thread