Re: Change type/creator
Re: Change type/creator
- Subject: Re: Change type/creator
- From: "Steven D.Majewski" <email@hidden>
- Date: Wed, 22 Sep 2004 19:59:17 -0400
On Sep 22, 2004, at 5:33 AM, Michelle Steiner wrote:
On Sep 21, 2004, at 11:30 PM, Bernard Azancot wrote:
I would like to know how to write an applet which first reads
type/creator from a first dropped document file and change a second
dropped file's one.
The problem is that when you drop more than one file, you have no
control over the order they appear in the list, so the script doesn't
know which is supposed to be the first and which is supposed to be the
second.
Noted above is the problem with the question as asked.
But another way to solve the problem, is to write both a run handler
and an open
handler for the script. The run handler can set up properties ( for
file type or
creator, for example ) with a dialog. The open handler changes the
dropped files
according to the last settings of the property. ( That pattern is
useful if you
need to run the file conversion script more often than you need to
change the
default settings. )
-- Steve Majewski - University of Virginia Alderman Library
_______________________________________________
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