Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prompt to open file or folder




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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Prompt to open file or folder (From: Emmanuel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.