Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Opening specfic files/folders under OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening specfic files/folders under OS X



Since upgrading to OS X scripts that opened specific files and
folders no longer work.

# This doesn't work. I have tried to set the path in different ways
:Volumes:Documents:In_Progress
/Volumes/Documents/In_Progress
I have also tried it taking out the the select folder and simply
putting a path after an open statement.
tell application "Finder"
activate
select folder "In_Progress" of disk "Documents"
open selection
end tell

## This works but I don't know what it is setting the path to.
-- To be run under OS X
-- Should run without a problem under < OS X

tell application (path to frontmost application as text)
set the chosen_folder to (choose folder with prompt "Folder to open
")
end tell
tell application "Finder"
activate
open the chosen_folder
end tell


--
Kevin Diffily
InterNetWorkingSolutions
Enterprise Class Solutions for All Enterprises

318 Last Road, Cabot, VT 05647 USA

VOICE: 1.866.inetws.net (Toll Free)
FAX: 1.888.726.9030 (Toll Free)

Sales: email@hidden
General Information: email@hidden
Website Hosting: email@hidden
Systems Administration Services : email@hidden
Technical Support & Training Services: email@hidden

Instant Messaging Username:
AIM, IRC, Jabber, MSN, Yahoo: inetwsnet
ICQ: 120778694




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.