[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: Photoshop/Photoscripter and glue (was Re: [MacPerl] morequark scripting)



>
>I've been trying to script Photoshop/PhotoScripter with MacPerl. I
>wasn't able to get very far with the Glue approach. I had more
>success using AppleEvents::Simple, but eventually had to resort to
>MacPerl::DoAppleScript.

Photoshop and Photoscripter are what I'd call a *real* special case.
Photoshop itself has a dynamic dictionary - that's why it opens up if you
try and read the dictionary (at least with Script Editor).  Script Editor
says "Hey, this dictionary might get changed when the application runs, so
I'd better not read it until the application is open".  Photoscripter, of
course, does just that, it changes the dictionary.  But only when the
Application is open.

I don't know what you've tried to get a glue for Photoscripter.  This is
what I would recommend (although I don't have a copy myself to test it
with).

Launch Photoshop, with Photoscripter installed.  Then try and make a glue
of Photoshop.  That should give you the

If that doesn't work, you could try dropping Photoscripter itself onto
gluemac.  You shouldn't need to do anything like change the file type to
"APPL", because gluemac doesn't care about those things.

You said you didn't get very far with glue, and ran into problems with
AppleEvent::Simple.  What kind of problems?  There really *shouldn't* be
any difference between the three approaches (except for things like
application time out, which again shouldn't make a difference).

>
>I am very appreciative of Chris Nandor's efforts to develop the Apple
>Events Glue. In theory, the Glue approach would greatly simplify
>Apple Events programming, and make my life a lot easier.

Yeah!  Thanks, again, Chris.

-Jeff Lowrey



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org