Re: Photoshop 7 Applescript improvements
Re: Photoshop 7 Applescript improvements
- Subject: Re: Photoshop 7 Applescript improvements
- From: Shane Stanley <email@hidden>
- Date: Fri, 19 Apr 2002 10:06:28 +1000
On 19/4/02 12:27 AM +1000, Brennan, email@hidden, wrote:
>
One of the things I find most interesting about Photoshop 7 is that it has
>
some kind of improved support for Applescript.
"Improved" is an understatement.
>
>
It's (disappointingly) an optional download
Gee, you're easily disappointed :-)
>
although it is free
Nice price.
>
and apparently it 'conflicts' with photoscripter, which they tell you to
remove.
A matter of practicality -- having two plug-ins trying to do similar things
sounds a recipe for disaster.
>
Perhaps it is a beefed up photoscripter.
No; it was developed from scratch. It does more, and less.
>
>
I know it's early days, but I'd be really interested to hear any first
>
impressions.
The bad news is that it doesn't support path scripting. And there are some
gotchas to do with PS's state when a script is run. The good news is that it
supports lots of stuff, and even lets you drive otherwise unscriptable
plug-ins (albeit via javascript and a rather complex process).
Here's something to whet your appetite:
tell application "Adobe Photoshop 7.0"
make document at beginning with properties {mode:RGB, width:600 as pixels,
height:400 as pixels, bits per channel:eight}
tell current document
set newLayer to make art layer at end with properties {blend
mode:difference, kind:text layer}
tell text item of newLayer
set properties to {contents:"Hello world", justification:center,
font:"Helvetica-Bold", size:148, position:{250, 300}, antialias
method:crisp, kind:point text, stroke color:{red:200, green:50, blue:100},
horizontal scale:75, tracking:-40}
end tell
apply layer style newLayer using "Sunset Sky (Text)"
end tell
end tell
--
Shane Stanley, email@hidden
_______________________________________________
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.