Results 1 to 15 of 25
-
05-02-2019, 09:49 PM #1Does anyone use Automator on a regular basis?
I think I have used Automator ages ago and now have a task that I think is perfect for Automator, but I'm having trouble to get my head around the way Automator is set up in El Capitan.
I basically can't figure out which of the eight options to use to even starts.
The task is very simple
I have a few thousand pdf files in a folder on my desktop.
What I need in the end is a jpeg file of the first page of each pdf file.
So manually I just:
1. Select the folder on my desktop
2. Open the first pdf
2. Save this pdf as a jpeg (which will save only the first page of the pdf as a jpeg)
3. Save the jpeg in the same folder
4. Close the pdf
Repeat by selecting and opening the next pdf
First problem I'm running into is that automator does not show an action "Open pdf"
If I look at "Open Word Documents", a pdf document is not one of the types.
And I thought this would be easy and straight forward.
- 05-02-2019, 10:42 PM #2I basically can't figure out which of the eight options to use to even starts.
The task is very simple
Doesn't your Mac OS Automator.app still have a "Watch Me" to record the script you want to create of everything you want to do, or has Apple removed that feature along with so many others???
- Patrick
======
05-03-2019, 03:08 AM #3
- Member Since
- Sep 30, 2007
- Location
- The Republic of Neptune
- Posts
- 8,050
- Your Mac's Specs
- 27" 2019 iMac
- Rep Power
- 24
Automator World has an action for this that you can download.
Convert PDF to JPEG | Automator World
Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
05-03-2019, 04:04 AM #4
- Member Since
- Jan 23, 2009
- Location
- Born in Scotland, Worked in Scotland then England, Now live in Wales
- Posts
- 6,063
- Your Mac's Specs
- iMac 5K Retina 27", August 2019, 3.6GHz Intel Core i9, Memory 32GB, 2TB SSD, macOS Mojave 10.14.6
- Rep Power
- 20
Nice find, Lifeisabeach.
IanIan
05-03-2019, 10:39 AM #5
05-03-2019, 12:31 PM #6
No, not really because you could try this:
Oct 7, 2013 12:11 PM in response to jbsphoto
Automator has a "Render PDF Pages to Images" action.
There's a wizard that pops up when you run Automator asking you to choose a template. The second template is "Application":
Applications are self-running workflows. Any files or folders dropped onto an Application will be used as input to the workflow.
So:
Open Automator
Choose "Application"
Drag the "Render PDF Pages to Images" action onto the workflow
This action produces random filenames, so follow it with "Rename Finder Items" (choose "Make sequential" from the dropdown list
Then add a "Move Finder Items" to have the output files moved to the Desktop
Save your new application somewhere
Drag files onto it
And if that doesn't work, try here:
mac automator "Convert PDF to JPEG"
mac automator "Convert PDF to JPEG" - Google Search
Good luck.
- Patrick
======
05-03-2019, 01:18 PM #7Thanks Patrick,
But I couldn't get this to work either.
Oner thing I should mention -
When I do this manually as described in my first post...if I use Preview to opern the pdf and then save it as a jpg, I get a jpg of the first page ONLY!...which is exactly what I want
If I do the same thing in Adobe Acrobat for instance, oen the pdf and then save/export it as a jpg, I get a jpg of every pdf page in the pdf document ...which is NOT what I want
Seems to me, even if I could get this to work, that Automastor action: "Render PDF Pages to Images" just the way it is worded would probably give me jpg of all the pdf pages.
I aslo tried another suggestion on the google list - select all the pdfs, open them with Preview and save as jpgs.
Tried that on a sample of 5 pdfs, but when I saved them as jpgs, I only got a jpg of the first page of that whole lot, not a jpg of every first page of those 5 pdfs.
BTW - The "Watch Me" function is still available by using the record button.
Haven't tried that, but that just repeats the mouse or keyboard inputs exactly, I need the mouse (or something) to select the next pdf in a long list of pdfs and then do the repetitive stuff
05-04-2019, 07:01 PM #8
- Member Since
- Sep 30, 2007
- Location
- The Republic of Neptune
- Posts
- 8,050
- Your Mac's Specs
- 27" 2019 iMac
- Rep Power
- 24
Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
05-04-2019, 07:30 PM #9
- Member Since
- Nov 16, 2009
- Location
- North Louisiana, USA
- Posts
- 14,596
- Your Mac's Specs
- 2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.4 beta
- Rep Power
- 25
I won't be able to ork on this for several days but I'm pretty sure t can be done with Automator. I've prersonally been a little disappointed that there have been so few new Automator actions for quite a while. I haven't looked recently so I could be wrong there.
BTW I don't find the Watch Me Do action helpful in many situations where one would expect it to be. Haven't used it (or Automator in general) in a while but IIRC Watch Me Do often got confused if that action was called when the cursor was in a different place when the workflow was designed.“Hard work beats talent when talent fails to work hard.”
― Kevin Durant
05-04-2019, 07:44 PM #10Thanks guys,
If I had any experience with Automator recently, I could probably figure this out myself pretty easily, but I have trouble figuring out where to even start.
Also there doesn't seem to be an Automator function to open a pdf in Preview.
BTW - What happened to the "Edit" function?
I was trying to correct some typos I just noticed in my last post, I double checked to make sure I'm logged in, which I am, but there is no Edit option for my own posts, just "Reply" and "Reply with Quote" like every other post in this thread.
05-04-2019, 08:25 PM #11BTW - What happened to the "Edit" function?
I was trying to correct some typos I just noticed in my last post, I double checked to make sure I'm logged in, which I am, but there is no Edit option for my own posts, just "Reply" and "Reply with Quote" like every other post in this thread.
Hmmm... I hadn't really noticed but you are correct, and with some quick crude ckecking of my own posts or edits, it seems that any posts after about 24 hours from the last post seem to drop the "Edit" option. Any posts prior to 24 hours seems to have the "Edit" option available.
Maybe one of the Admins/Mods could confirm what the settings might be.
- Patrick
======
05-04-2019, 09:05 PM #12
- Member Since
- Jan 23, 2008
- Location
- Keller, Texas
- Posts
- 59,074
- Your Mac's Specs
- 2017 27" iMac, 10.5" iPad Pro, iPhone 7+, iPhone 8, Numerous iPods, Mojave
- Rep Power
- 53
Maybe one of the Admins/Mods could confirm what the settings might be.
05-04-2019, 09:27 PM #13
- Member Since
- Sep 30, 2007
- Location
- The Republic of Neptune
- Posts
- 8,050
- Your Mac's Specs
- 27" 2019 iMac
- Rep Power
- 24
Ok, this took some trial and error. As per Automator World, the numbering is completely random and a simple rename won't work because you can't distinguish which jpg is page 1 for subsequent documents when batching this. But I found a way around that. I suggest saving this as a "Quick Action", which will be accessible from the Services menu by right-clicking the PDFs you want to run this on.
This workflow starts by splitting the selected PDFs into separate PDF pages. These will be named sequentially and not randomly. So in the demo I was running, Document 01 is split into Document 01-page1, Document 01-page2, and so on. The next step will then render them all as JPGs. Afterwards, it will move the JPGs to a folder of your choice. And so, here we go....
Open up Automator; click "New Document", then select and choose "Quick Action".
On the far top right, adjust the options so that "Workflow receives PDF files in Finder". The remainder of the options there are irrelevant.
From the list of actions on the left, select "PDFs", then double-click on the action "Split PDFs". This action will then be on the right in your workflow. Set the folder you want these output to. These will be the PDFs split into single pages, so plan on deleting them all once done. You can leave the input name as same, unless you have a need to rename them.
From the list of actions on the left, select "PDFs", then double-click on the action "Render PDF Pages as Images" to add it as the 2nd step of the workflow. Set the options as you see fit.
From the list of actions on the left, select "Files & Folders", then double-click on the action "Move Finder Items" to add it as the 3rd and final step of your workflow. Set the location you want to save these JPGs to.
Once done, save the workflow named as you see fit. "PDF to JPG" for example. It should be saved directly to the Services folder for your user account. You can then highlight all the PDF files you want to run this on; right-click on them; and select the workflow from the list of services at the bottom.
screenshot_129.jpg
Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
05-04-2019, 09:32 PM #14
- Member Since
- Nov 16, 2009
- Location
- North Louisiana, USA
- Posts
- 14,596
- Your Mac's Specs
- 2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.4 beta
- Rep Power
- 25
Kudos for that LB. Way to go the extra mile. I'm sure it's appreciated.
“Hard work beats talent when talent fails to work hard.”
― Kevin Durant
05-04-2019, 09:40 PM #15
- Member Since
- Sep 30, 2007
- Location
- The Republic of Neptune
- Posts
- 8,050
- Your Mac's Specs
- 27" 2019 iMac
- Rep Power
- 24
Yeah, AutomatorWorld is very severely outdated. I was dumbfounded that the one I pointed out was PPC-only. That's just awful. The site clearly has effectively been abandoned. It's a shame because Automator is one of those little gems that adds a lot of utility to OS X. Unfortunately even Apple seems to have abandoned it also considering no new actions have been added in ages.
Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
USB Keyboard, British PC layout, mapping layouts on a per keyboard basis
By TimJWatts in forum macOS - Operating SystemReplies: 5Last Post: 05-11-2018, 02:11 PM -
Automator - Help closing apps after Automator launches them
By p605 in forum macOS - Apps and GamesReplies: 0Last Post: 08-26-2011, 01:04 PM -
Lion's "Restore windows" on a per-app basis
By Lifeisabeach in forum macOS - Operating SystemReplies: 6Last Post: 07-26-2011, 03:11 PM -
Restrict access to applications on time basis
By Zettt in forum macOS - Apps and GamesReplies: 0Last Post: 09-07-2007, 04:25 AM -
Making folders on a daily basis...
By rbaibich in forum macOS - Operating SystemReplies: 11Last Post: 06-15-2005, 05:45 AM
Tags for this Thread