Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can you use variables in actions?

0 views
Skip to first unread message

Troy Piggins

unread,
Nov 24, 2009, 1:29:46 AM11/24/09
to
I'm trying to create an action that I intend to run after I'm
finished processing a TIF. I want it to save the full sized TIF;
convert to sRGB 8bit JPG; save that; resize down to 800 max
sides; save for web; resize down to 500 max sides; save that for
web.

Think I'm ok for most of it, but running into trouble with the
filenames where it's "saving as". How do you think this can be
done?

eg original filename is filename.TIF
save full sized jpg as filename.JPG
save 800 max as filename-800.JPG
save 500 max as filename-500.JPG

or something like that.

--
Troy Piggins

Mike Russell

unread,
Nov 24, 2009, 3:13:53 AM11/24/09
to

Unfortunately, actions do not support variables, but there is hope. You
probably want to use scripting, which does allow variables in the scripting
language of your choice, typically VB script, or javascript. Check out the
scripting toolkit that is shipped with Photoshop.

Also check out http://www.ps-scripts.com/ , which is a site that is
dedicated to scripting.
--
Mike Russell - http://www.curvemeister.com

Troy Piggins

unread,
Nov 24, 2009, 3:22:51 AM11/24/09
to
* Mike Russell wrote :

> On Tue, 24 Nov 2009 16:29:46 +1000, Troy Piggins wrote:
>
> [---=| Quote block shrinked by t-prot: 11 lines snipped |=---]

>> save full sized jpg as filename.JPG
>> save 800 max as filename-800.JPG
>> save 500 max as filename-500.JPG
>>
>> or something like that.
>
> Unfortunately, actions do not support variables, but there is hope. You
> probably want to use scripting, which does allow variables in the scripting
> language of your choice, typically VB script, or javascript. Check out the
> scripting toolkit that is shipped with Photoshop.
>
> Also check out http://www.ps-scripts.com/ , which is a site that is
> dedicated to scripting.

Will do, thanks Mike.

PS - to save me making another post. I've come across a plugin
that's supposed to be pretty good for astro image editing -
called starrounder.8bf I think. I read that means it's a Windows
only plugin? Do you know of a way to convert it to Mac?

--
Troy Piggins

Mike Russell

unread,
Nov 24, 2009, 5:15:19 AM11/24/09
to

Although it could be done, AFAIK, there is no way to convert from Windows
to Mac, or run a Windows plugin directly on the Mac.

If that plugin is important enough, it is possible to emulate windows on
your Macintosh, run Photoshop for Windows, and access the plugin that way.

Troy Piggins

unread,
Nov 24, 2009, 6:59:11 PM11/24/09
to
* Mike Russell wrote :

> On Tue, 24 Nov 2009 16:29:46 +1000, Troy Piggins wrote:
>
> [---=| Quote block shrinked by t-prot: 11 lines snipped |=---]
>> save full sized jpg as filename.JPG
>> save 800 max as filename-800.JPG
>> save 500 max as filename-500.JPG
>>
>> or something like that.
>
> Unfortunately, actions do not support variables, but there is hope. You
> probably want to use scripting, which does allow variables in the scripting
> language of your choice, typically VB script, or javascript. Check out the
> scripting toolkit that is shipped with Photoshop.
>
> Also check out http://www.ps-scripts.com/ , which is a site that is
> dedicated to scripting.

Just thinking about this a little more. How about making the
action pause or wait for me to type in the filename at the save
for web window, then click ok and action continues. Is that
possible and how? Sorry if it's a dumb question.

--
Troy Piggins

Louis des Tombe

unread,
Nov 24, 2009, 7:05:21 PM11/24/09
to
Troy Piggins <usene...@piggo.com> wrote in news:20091124161813
@usenet.piggo.com:


> eg original filename is filename.TIF
> save full sized jpg as filename.JPG
> save 800 max as filename-800.JPG
> save 500 max as filename-500.JPG
>

I've solved it in a cheap way, but it works: I've created special temp
directories, named, say, 'full', '800', and '500', and I let the saves go
in there. After I've done a bunch I put the files where I want them, all
versions have the same name but in my case they never go to the same place.

Maybe this helps.

--
Louis

Mike Russell

unread,
Nov 24, 2009, 7:35:35 PM11/24/09
to

Yes, that will work. Just do a save while recording your action. Then
open the action, and click on the dialog icon next to the save command.

Troy Piggins

unread,
Nov 24, 2009, 8:37:03 PM11/24/09
to
* Mike Russell wrote :
> On Wed, 25 Nov 2009 09:59:11 +1000, Troy Piggins wrote:
>
> [---=| Quote block shrinked by t-prot: 17 lines snipped |=---]

>>
>> Just thinking about this a little more. How about making the
>> action pause or wait for me to type in the filename at the save
>> for web window, then click ok and action continues. Is that
>> possible and how? Sorry if it's a dumb question.
>
> Yes, that will work. Just do a save while recording your action. Then
> open the action, and click on the dialog icon next to the save command.

I see. Thanks Mike. Still coming to grips with all things
Photoshop.

--
Troy Piggins

Troy Piggins

unread,
Nov 24, 2009, 8:55:12 PM11/24/09
to
* Louis des Tombe wrote :

Thanks mate. All sorted now.

--
Troy Piggins

0 new messages