• 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
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


  • Subject: Opening specfic files/folders under OS X
  • From: Kevin Diffily <email@hidden>
  • Date: Thu, 28 Jun 2001 17:01:13 -0400

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


  • Prev by Date: AS from Classic to OS X Apps?
  • Next by Date: Re: load script question
  • Previous by thread: URL Access Module
  • Next by thread: AOL 5.0
  • Index(es):
    • Date
    • Thread