• 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: Prompt to open file or folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prompt to open file or folder


  • Subject: Re: Prompt to open file or folder
  • From: Brett Conlon <email@hidden>
  • Date: Thu, 27 Jul 2006 16:19:41 +1100


Thanks to Emmanuel, J & dev for their offerings!  8-)

I ended up going with satimage.osax approach and wrote the following code:

on run
        set PickItems to navchoose object with prompt "Choose folder/s for Archive checking or choose file/s to check their file type." with multiple files
        tell application "Finder"
                repeat with ThisItem in PickItems
                        if class of item ThisItem is document file then
                                --do file stuff
                        else if class of item ThisItem is folder then
                                --do folder stuff
                        end if
                end repeat
        end tell
end run

Cheers!

Cojcolds



Emmanuel <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

24/07/06 10:32 PM

To
email@hidden
cc
Subject
Re: Prompt to open file or folder



Satimage.osax (free) includes a "navchoose object" command (in
addition to "navchoose file" and 'navchoose folder") to do exactly
that.

Emmanuel

 _______________________________________________
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: 
 >Re: Prompt to open file or folder (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: AppleScript cache and writing a scriptable app
  • Next by Date: Add prices with taxes in quark
  • Previous by thread: Re: Prompt to open file or folder
  • Next by thread: file copy over newtork
  • Index(es):
    • Date
    • Thread