Re: Neophyte Question
Re: Neophyte Question
- Subject: Re: Neophyte Question
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 15 Feb 2006 18:21:28 -0500
Hi Stephen - alas it's one of the "just gotta know about it" tricks in AppleScript. Sometimes applications offer special commands to create new items, and sometimes they support the generic "make" command, and it happens to handle it in a way that makes you happy.
In this case (as usual) my line of inquiry was to examine the scripting dictionary from the "application object" down. If I'd seen an element called "documents" I would have tried "make new document." Since all I saw was windows I tried it and it worked.
To make matters worse, in some applications you have to give a position for the new object, so you find yourself saying things like "make new document at end of documents".
I'm not gonna lie to ya - AppleScript can be a frustrating place. But I'm glad in this case the make new window trick works for you.
Daniel On Feb 15, 2006, at 4:44 PM, Stephen Bunker wrote: Daniel, thank you very much for the assist. It did the trick. How did you know that this would accomplish the task? I did a search for "make new window" in the script editor dictionary for GraphicConverter but couldn't find it.
|
_______________________________________________
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