Re: How can I use the document Class from Image Capture Scripting ?
Re: How can I use the document Class from Image Capture Scripting ?
- Subject: Re: How can I use the document Class from Image Capture Scripting ?
- From: Emmanuel <email@hidden>
- Date: Sat, 5 Mar 2005 21:38:36 +0100
At 1:00 PM +0100 3/5/05, Emile Schwarz wrote:
Hi all,
The dictionary of the Image Capture Scripting application have 5
commands and a Class.
The class name is document with three properties: width, height and
resolution (all integers, all r/o).
It was _easy_ to figure out how to use the Commands, but I have
troubles using the document Class (I can't use it).
The "reference" term used in the dictionary really refers to a
"document". When you "open" an alias with Image Capture Scripting,
"open" returns a "document" (I mean, I suppose it does.) When you
want, say, to rotate an image, you really apply "rotate" to a
"document" you've previously opened. And when you're done you should
"close" the documents you have opened.
That's what AppleScript was supposed to be designed for, and what it
does best IMHO: controlling an application's objects. So, it's rather
generic to have commands to *make* new objects, to *delete* one, and
to *manipulate* it. Creating an object happens most often, either
from scratch, or from a document saved on disk. In order to refer to
the object you've created, the creation commands return a reference
that you can use later.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden