• 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
File or Alias?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File or Alias?


  • Subject: File or Alias?
  • From: Pier Kuipers <email@hidden>
  • Date: Fri, 2 Feb 2001 12:21:41 +0000

I seem to be experiencing intermittent problems with several scripts that refer to files in the finder. What I mean is, a script that usually runs without problems may one day decide to produce an error. For example:

-- Script must be run from the Apple or OSA menu
tell application "Finder"
set theArchive to (selection as alias)
tell application "ApplicationName" to open file theArchive
end tell

As far as I remember, this used to work fine, but now causes an Apple Event error. The problem is easily rectified by changing the second tell statement to

tell application "ApplicationName" to open theArchive

in other words, leave out the "file" bit. What is going on? I did update my system software recently (from 9.0 to 9.0.4), but surely that shouldn't cause this type of problem?
Any help greatly appreciated.

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


  • Prev by Date: Re: Intro and Can this be done
  • Next by Date: Re: Push for AppleScript in OS X
  • Previous by thread: Re: Fetch's Initial Dialogue Box
  • Next by thread: Re: File or Alias?
  • Index(es):
    • Date
    • Thread