• 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: Mac OS X Finder Opening a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X Finder Opening a file


  • Subject: Re: Mac OS X Finder Opening a file
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 27 Apr 2001 12:28:41 -0700

On Friday, April 27, 2001, at 03:23 AM, Glenn Kowalski wrote:

Ok, either Mac OS X has some serious Applescript problems, or I'm overlooking something. I can't even get the Finder to launch a file!

Tell application "Finder"
Open file filepath
End tell

This does nothing! I've tried changing the path to start with "/", tried using slashes instead of ":", but nothing. Is scripting the Finder totally broken?

For reasons we're still looking into, the Finder in Mac OS X 10.0 doesn't understand "file <path>" references. However, "alias" references and long-hand Finder object specifiers both work fine. For example:

tell application "Finder"
-- This doesn't work...
open file "Tukuul:Users:neb:Documents:drawer-bug.tiff"

-- ...but both of these do.
open alias "Tukuul:Users:neb:Documents:drawer-bug.tiff"
open file "drawer-bug.tiff" of folder "Documents" of folder "neb" of folder "Users" of disk "Tukuul"
end tell

Finder scripting in Mac OS X is has its problems, but it's not *totally* broken.


--Chris Nebel
AppleScript Engineering


References: 
 >Mac OS X Finder Opening a file (From: Glenn Kowalski <email@hidden>)

  • Prev by Date: how to set "timeout" parameter within FileMaker Pro?
  • Next by Date: Re: Tabs
  • Previous by thread: Re: How to copy to clipboard
  • Next by thread: Scripting Personal Web Sharing
  • Index(es):
    • Date
    • Thread