• 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: Image Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Events


  • Subject: Re: Image Events
  • From: Graff <email@hidden>
  • Date: Fri, 04 Jun 2004 12:04:40 -0400

If you use the Finder-style of a path then you need to prepend the string with "file", if you use the Posix-style of path then you need to use "Posix path"

Finder-style path:
----
tell application "Image Events"
open file "path:to:file"
end tell
----

Posix-style path:
----
tell application "Image Events"
open Posix file "/path/to/file"
end tell
----

- Ken

On Jun 4, 2004, at 10:59 AM, Townsend, Gregory *HS wrote:

I'm having all sorts of trouble with Image Events, namely that it's not working.

If I use it to try to information about an image, I get no information (i.e., an empty list). I've copied the example scripts at the AppleScript website just to make sure that I haven't written something incorrectly, but I get the same result (or lack thereof).

I've also tried to use it to convert images. If I use the scripts at the AppleScript site exactly, it works ok. However, if I identify the path to an image file ahead of time rather than using 'choose file', I get bupkus. I'm assuming that I must need to use a special syntax for the path to the image file, but I can't figure out what it might be. I've tried ' as string', '  as Unicode text' and 'POSIX path of ' without success.

Using OS 10.3.3/10.3.4.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Image Events
      • From: Greg Townsend <email@hidden>
References: 
 >Image Events (From: "Townsend, Gregory *HS" <email@hidden>)

  • Prev by Date: Re: Applescript question
  • Next by Date: RE: Filling a cell in Excel
  • Previous by thread: Image Events
  • Next by thread: Re: Image Events
  • Index(es):
    • Date
    • Thread