Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Applescript or Automator Action for Web Publishing

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Ghost/shadow "browser"  
Author Message
dstodd

External


Since: Jan 15, 2006
Posts: 3



(Msg. 1) Posted: Sun Jan 15, 2006 3:54 am
Post subject: Applescript or Automator Action for Web Publishing
Archived from groups: alt>comp>lang>applescript (more info?)

Hi All,

I am trying to publish some photos on the net in a number of galleries.
Essentially what I want to do is the following steps:

1. process images selected in iPhoto
2. prompt for a name of the gallery
3. create a directory with the gallery name
4. create 2 sub directories, 'tb' and 'big'
6. copy thumbnail to 'tb'
7a. add the iPhoto Title and Comment fields as text on to the image
(each on a seperate line, each a different style)
7b. alternatively, show each image and prompt for each field.
8. copy image to 'big'
9. resize image
10. copy image to the gallery directory
11. ftp to server

For image manipulation, I can do what I need from the shell using
ImageMagick 6.2.5 , but I can't make it work in Automator. This is my
first complex Automator workflow, so somethings just haven't been
obvious to me :(

I appreciate any help that you could send my way.

Kind thanks,

Dan

 >> Stay informed about: Applescript or Automator Action for Web Publishing 
Back to top
Login to vote
J. Stewart

External


Since: Mar 03, 2005
Posts: 75



(Msg. 2) Posted: Sun Jan 15, 2006 7:38 am
Post subject: Re: Applescript or Automator Action for Web Publishing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1137326080.705075.131630.RemoveThis@f14g2000cwb.googlegroups.com>,
<"dstodd@gmail.com"> wrote:

> For image manipulation, I can do what I need from the shell using
> ImageMagick 6.2.5 , but I can't make it work in Automator. This is my
> first complex Automator workflow, so somethings just haven't been
> obvious to me :(

I may have misunderstood you but...

Since you say you can make it work from the shell using ImageMagick,
can't you save those commands as a shell script (text file) instead of
just typing in a series of commands on the command line?

If so then...

Automator (and/or Applescript) can run shell scripts. In Automator,
click Automator in the Library column and you will see the action "Run
Shell Script" appear in the action column. Copy/paste the full shell
script's text to the action.

J

--
Use ROT-13 on the email address for email replies

 >> Stay informed about: Applescript or Automator Action for Web Publishing 
Back to top
Login to vote
dstodd

External


Since: Jan 15, 2006
Posts: 3



(Msg. 3) Posted: Mon Jan 16, 2006 2:33 am
Post subject: Re: Applescript or Automator Action for Web Publishing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

J, thank you for your response. Having re-read my original post, I was
a little vague. While I can do what I want using the shell, I have had
trouble getting the shell command to work from within Automator. I've
checked paths etc and still no luck.

To re-phrase my question, it has two parts : 1. how can I do this
without ImageMagick or is there an AppleScript/Automator API for
ImageMagick? 2. Are there any tips or hints for using IM from a shell
script?

Again, thank you and best regards.

Dan
 >> Stay informed about: Applescript or Automator Action for Web Publishing 
Back to top
Login to vote
dstodd

External


Since: Jan 15, 2006
Posts: 3



(Msg. 4) Posted: Mon Jan 16, 2006 2:40 am
Post subject: Re: Applescript or Automator Action for Web Publishing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Thomas. I find Image Events frustratingly close to what I want,
but not close enough. I like the way it works, just disappointed about
what it does, especially with all the fuss that surrounds the Core
Image stuff.

Is there an alternative to ImageMagick that has an API for AppleScript
or Automator? What about an alternative to SIPS?

Thanks for your help. All the best,

Dan
 >> Stay informed about: Applescript or Automator Action for Web Publishing 
Back to top
Login to vote
Thomas Kaiser

External


Since: May 09, 2004
Posts: 38



(Msg. 5) Posted: Mon Jan 16, 2006 11:55 am
Post subject: Re: Applescript or Automator Action for Web Publishing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dstodd.DeleteThis@gmail.com wrote at 2006-01-16 in <news:1137408045.478389.285370@g44g2000cwa.googlegroups.com>
> Is there an alternative to ImageMagick that has an API for AppleScript
> or Automator?

Photoshop comes to my mind ;-)

Unless you don't tell us exactly what you're trying to achieve which way we
won't be of any help...

In case you have a working script you could add the following to the script
to see how the enviroment ($PATH for example) differs when called from
within Terminal.app or Automator (or 'do shell script'):

#!/bin/bash -x
exec 2>>/tmp/debug.log
echo "$@"
env

This will turn on "debug mode", redirect "standard error" into /tmp/debug.log
and writes every CLI argument as well as the script's environment into this
file.

Regards,

Thomas
 >> Stay informed about: Applescript or Automator Action for Web Publishing 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]