• 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: what's going on? Image Events...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's going on? Image Events...


  • Subject: Re: what's going on? Image Events...
  • From: Graff <email@hidden>
  • Date: Sun, 13 Jun 2004 22:08:02 -0400

With Image Events you need to open the file before you can do anything with the file. You should also make sure to close the file so that it isn't hanging around open. This works:
----
set theFile to choose file
set thistype to ""
tell application "Image Events"
open theFile
set thistype to file type of image theFile
close theFile
end tell
thistype
----

- Ken

On Jun 13, 2004, at 7:02 PM, Michael Cytrynowicz wrote:

I run this:

set theFile to choose file
set thistype to ""
tell application "Image Events"
set thistype to file type of image theFile
end tell
thistype

(I've tried other things besides file type, such as resolution, color
space, etc, from the IE dictionary)

and I get this:

error message: the variable thistype is not defined

What am I doing wrong?
_______________________________________________
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.


References: 
 >what's going on? Image Events... (From: Michael Cytrynowicz <email@hidden>)

  • Prev by Date: Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
  • Next by Date: Combining two projects
  • Previous by thread: what's going on? Image Events...
  • Next by thread: Re: what's going on? Image Events...
  • Index(es):
    • Date
    • Thread