Skip navigation

Automator : JPG to PDF (with auto-rename regarding folder name)

1929 Views 6 Replies Latest reply: Apr 3, 2013 9:34 PM by pjdube RSS
MarcPJ31 Calculating status...
Currently Being Moderated
Jun 20, 2011 5:11 AM

Hello everyone,

 

I'm trying to develop an automator script that transform a folder with pictures (jpg, png...) to a unique PDF file.

The idea is simple : I right-click on a folder, then I choose my workflow script, then the system creates a PDF file.

 

I managed to perform the first part of the script : it generates a PDF file called "my_picture.pdf". I use an automator script.

But on the second part, I can not rename this file similar to the "right-clicked" folder name.

 

 

 

This is an example of what I want.

 

Before :

2011_my_house/IMG_1001.jpg

2011_my_house/IMG_1002.jpg

 

I right-click on the folder 2011_my_house and I choose my automator script.

 

After :

2011_my_house/IMG_1001.jpg

2011_my_house/IMG_1002.jpg

2011_my_house.pdf

 

 

My questions :

1) Is it possible to do that with automator ?

2) If not possible, is it possible to call an automator script from the command line ? How does Automator handle the parameters ?

 

 

Thank you in advance,

 

-- Marc

Automator, Mac OS X (10.5.8)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.