Re: Photoshop action script
Re: Photoshop action script
- Subject: Re: Photoshop action script
- From: Kai Edwards <email@hidden>
- Date: Sat, 16 Feb 2002 22:49:26 +0000
on Sun, 3 Feb 2002 19:05:58 +0100, Emmanuel <email@hidden>
wrote:
>
At 3:59 PM +0100 3/2/02, Kai Edwards wrote:
>
>
>> From: Paul Godard <email@hidden>
>
>> Subject: Photoshop action script
>
>>
>
>> Why is it that when I open Photoshop 6.0.1 as a dictionary in Smile
>
>> 1.8.0 I do NOT see the "do script"?
>
>>
>
>> When I open my AS applet, I got this
>
>>
>
>> tell application "Photoshop 6.0.1"
>
>> +event miscdosc; "CreateJPGWeb"
>
>
>
> While I can't really help you specifically, I can tell you that the raw
>
> syntax <+event miscdosc;> invariably compiles as <do script> without a tell
>
> block in sight - which suggests that it's part of AS.
>
>
(As of Classic)
>
"do script", like many terms, was defined by Apple and published in the
>
documentation for developers, but not systematically implemented.
>
>
As of AS 1.6, "do script" is in Smile's dictionary, and it is not part of AS.
Thanks Emmanuel. It's always good to get a bit of background on these
things.
Perhaps the phrase 'part of AS' was a bit ambiguous. I was merely trying to
point out that, when I tried it, AS appeared to recognise the term <do
script> - even when it was not wrapped by a 'tell' or 'using terms from'
block.
The inference I drew from this was that the poster of the original query may
need to look further than PhotoShop for clues as to why his original script
(which had previously compiled normally) was now compiling with raw events
instead of recognised terms. That's why I went on to ask:
>
> In the light of this, my guess is that your problem may have less to do with
>
> the differences between PhotoShop versions 5.5 and 6.0.1 - and more to do
>
> with system/AS configurations. When you switch(ed) PhotoShop versions,
>
> do/did you also change systems?
>
Sometimes confusion occurs with "run script", which belongs to the Standard
>
Additions.
I don't doubt it - although the script in this case appears to have compiled
(and presumably run) the <do script> event for a previous version of
PhotoShop.
If the script had compiled with +event sysodsct; (the raw event for "run
script"), then perhaps this might have been easier to diagnose - since it
would suggest that the Standard Additions could possibly have gone missing.
Anyway, in spite of a number of subsequent spin-off discussions, I don't
recall seeing any further messages from the originator concerning the
question posed in the first place. Perhaps the problem has now been resolved
(although it would be interesting to know how)!
Thanks again for your clarification.
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************
_______________________________________________
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.