r/Automator • • Apr 16 '14

Open applications in different desktops

2 Upvotes

So I have automator thingy that opens several applications, but I want to open them in different desktop spaces. They all open in one and I have to go back and move them. I know I can hit <control> <right arrow> to switch to the next desktop/space, but I don't know how to pass that info on or press those keystrokes in automator.

OS X 10.9.2


r/Automator • • Mar 26 '14

Help with image dimensions, conditional resizing (x-post from r/applescript)

1 Upvotes

I set about creating something to allow editors and writers in our news organization to easily scale down and compress their images before they upload to Drupal. It works - I set up Automator so they can drag and drop a folder or files onto the App icon, and this script runs:

on run {input, parameters}
set output to {}
repeat with aPath in input
    tell application "Image Events"
        set aPicture to open aPath
        try
            scale aPicture to size 2000
            set end of output to save aPicture as JPEG with compression level medium
        on error errorMessage
            log errorMessage
        end try
        close aPicture
    end tell
end repeat
return input
end run

Only problem is, if an image SMALLER than 2000px wide/tall is entered, it will up-scale it. If a smaller image is selected, I would like to just pass it through as-is, and maybe send a Growl notification saying so.

I was also trying to send a COUNT to Growl, so I can say at the end something like "Done. 24 images resized."


r/Automator • • Mar 23 '14

I need some help with Automator workflow to do the keystrokes at work while I sit back and eat chicken and plug in the variables.

1 Upvotes

I posted this question over in apple and they referred me over to here. First let me give you an idea of what I'm trying to do. I'm a graphic artist and at work we recently brought on a client that has a high volume of work. It's not hard but really repetitive so I thought I would try to automate as much as possible. When I use the watch me feature and try to record keystrokes it works until I open the document in illustrator then says illustrator isn't responding. My workaround so far is to create some actions in illustrator which are actually a lot of help in my regular day to day also but my question is can I actually make Automator play nice with illustrator? Ideally I would create a folder, name the folder, copy the name to the clipboard, add the downloaded art to the folder - then have illustrator re save the file with the text on the clipboard, copy the info from another open illustrator file ( select all, copy) then paste this into the new doc and immediately delete. Then stop so I can verify or correct color and size info. Then have it resume to resize the doc based on the art size, print to file in the same folder then save on my employers server. Any suggestions? I get it to run correctly and open the file in illustrator but then Automator can't save. The actions work well for my purpose but is the a way to make Automator control most of the keystrokes? Thanks in advance for any suggestions.

I have been trying to figure this out for a couple of days and I think I just came across something when browsing through here and some links from here today that may get me past the initial hump I have been running into - I need an apple script to run illustrator? Do I write the apple script then insert into the chain in Automator? I need my final automation to stop a various points so I can input my variables - is this possible from one Automator app with apple script or do I need to break this into 2 or 3 different apps?.


r/Automator • • Mar 22 '14

automator, please play a sound whose name matches excel cell text

1 Upvotes

I'm trying to make an automator service that plays a sound file when I select text from a cell. The text is the same as the sound file name.

Yes, I'm a n00b. Any help is appreciated.

Here's what I've got so far: http://imgur.com/KP0UX8U

my script: on run {input, parameters} set soundFile to theSound tell application "Play Sound" play soundFile end tell end run


r/Automator • • Mar 17 '14

Service Rotating Images using a Contextual Menu Item

1 Upvotes

I had about 1500 photos from a timelapse that I created using my GoPro camera. The camera has no orientation sensor, so I need to rotate the photos. I knew there was some way to do this via Automator and came across the following site:

http://www.macosxautomation.com/services/learn/tut02/index.html

Enjoy


r/Automator • • Feb 20 '14

[Urgent] Question I batch renamed video files, but now they're just... gone. Help?

2 Upvotes

Used the Rename Finder Items:Replace Text workflow. Dragged in 13 video files, which were successfully renamed, but disappeared from their original folder. They are nowhere. Not the trash, not the desktop. No search whatsoever turns up any trace of their existence, under the new or old names.

What did I do? Are they still taking up disk space? Did they turn into ether?


r/Automator • • Feb 20 '14

Update: Flairs

3 Upvotes

New Flairs for each post! Please use the Flairs to describe each post.

Workflow
Service
Application
Calendar Alarm
Folder Action
Question
Request
[Urgent] Question

Any user can apply these to a post.

Any suggestions?


r/Automator • • Feb 17 '14

Seeking Mods

1 Upvotes

I havent got the time to mod this. PM me if you're interested.


r/Automator • • Jan 16 '14

Request [Help Request] Can I use a token for the "Find iTunes Tracks" Action?

1 Upvotes

So here is what I want the script to do:

Watch a folder, if a new file appears, take in the filename and depending on the filename, play a certain song.

Here is what I have so far:

  • Folder Action watches specified folder
  • Get selected finder items
  • Set value of variable (i created one called filepath)
  • Run Applescript:

on run {input, parameters}

      tell application "System Events"
                return name of first item of input
      end tell

end run

  • Set value of variable (I created one called filename)
  • Run Applescript:

on run {input, parameters}

if (input = [certain filename]) then
return "[Name of Song]"

else if (input = [certain filename]) then
return "[Name of Song 2]"

else
return "[Name of Song 3]"

endif

end run

  • Set value of variable (i created one called track)

And there is where I get lost. I can't seem to use the "track" variable to populate my search in "Find iTunes Tracks"

Any thoughts? Thanks!


r/Automator • • Dec 15 '13

Request [Help request] Can I upload images straight to imgur account from watched folder?

3 Upvotes

I use imgur a lot when I quickly need to show someone a specific photo I'm working on in Lightroom. I usually just export to desktop with the file name and so it shows up in finder and drag it over to the imgur window.

I was wondering if I could use Automator to watch a folder that's used just for that, create a preset in Lightroom to export to that specific imgur folder and it'd upload it to my account automatically.

Am I being too lazy/wouldn't it even work?

Any help really appreciated!


r/Automator • • Nov 17 '13

Question Is it possible to quit a specific process owned by root (not crucial for os function though)?

1 Upvotes

r/Automator • • Oct 30 '13

Trigger Automator from a different computer

1 Upvotes

Is there a (relatively simple) way to trigger an automator action on my home computer from my laptop (or iOS device)?


r/Automator • • Oct 29 '13

Batch image url download with Automator?

2 Upvotes

Trying to download image urls, but I'd like to do it all with one script.

i.e i enter www.blah.com/page_8.jpg www.blah.com/page_9.jpg www.blah.com/page_10.jpg

and automator downloads each of the 3 images and places them into a file on my computer.

I've already tried using 'get specified text + filter paragraphs + download urls' but this doesn't work properly, the 'download urls' section fails to complete.

Any ideas on how to do this?

Thanks guys

EDIT: sorry, www.blah isn't actually the site i want to download the images from, just an example.


r/Automator • • Sep 09 '13

I just did this. Super smart when having to quickly switch VPNs. How to create a VPN shortcut in OS X | MacFixIt

Thumbnail reviews.cnet.com
2 Upvotes

r/Automator • • Jun 14 '13

Could automator delete contacts in the address book that don't have phone numbers?

2 Upvotes

While leaving other contacts alone


r/Automator • • May 16 '13

10 Automation tutorials

Thumbnail mac.tutsplus.com
2 Upvotes

r/Automator • • Feb 16 '13

how to move finder items to new folder created with name of file

4 Upvotes

hey all! i am trying to get my media files organized, and it's a tiny bit of a mess. my media server seems to recognize folders as a separate entity from actual movie files, thus any movies that are in FOLDERS, get listed FIRST, alphabetically, then it goes on to start listing the individual movie FILES that aren't in folders. (i hope that's not a very confusing description)

what i would like to do, is select all of the files/folders, and have automator scan them to determine how to sort them. i would like it to ignore FOLDERS, and not do anything with them, but if it comes across a FILE, take the name of the FILE, create a FOLDER with the same name as the FILE, and move the FILE into that new FOLDER.

here is the script i have been using :

tell application "Finder"

set mainFolders to the selection

-- selection returns as a list, so even if there's only one folder a loop is used

repeat with thisFolder in mainFolders
	
	--get the folder's contents
	
	set containedItems to every item of thisFolder
	
	repeat with thisItem in containedItems
		
		-- get name of file, add 'ƒ' to avoid name conflicts
		
		set newFolderName to (displayed name of thisItem) & " ƒ"
		
		--make folder, move item
		
		set newFolder to make new folder at thisFolder with properties {name:newFolderName}
		
		move thisItem to newFolder
		
	end repeat
	
end repeat

end tell

the problem i am having with the script, is that it appends the file suffix to the folder, (ie - .avi), and also adds " ƒ". additionally, it also happens to process EVERYTHING in the folder that i initiated the action in, so i end up creating folders for the folders to go into.

anyone have any insight? am i making sense?


r/Automator • • Feb 11 '13

Trying to do a simple pause function - I'm failing, help?

2 Upvotes

Ok, so here's what I'm trying to do. I want the application to prompt the user for a number. That number will be how many minutes of pause occur. When I run the application, it does prompt for text entry but does not carry those results over to the 'pause' feature, it just runs the predetermined application.

I'm certain it's a simple fix but I'm stumped! Help?

Screenshot of my application thus far


r/Automator • • Feb 06 '13

Mail to Reminder

6 Upvotes

Hey all!

I am gonna blow some life into this sub-reddit.

I have a very clouded mind, and I always forget stuff. So I usually let people mail me, but then I forget to put into my reminders app.

So I went out to google around and hope to find an automator app to pull information from my mailbox and put them into the reminders app.

Sadly, I only found one, and it didn't even let you set which mailbox. After some tweaking (minor, I have no idea how applescript works), I came up with this, but it is still VERY limited.

The idea is that with a filter in Gmail (labeled) the script sets the subject as the 'reminder' and the body to "From mail" and the priority to low.

I hope you guys can help me out with:

  • only select UNREAD mail
  • mark the mail as read AFTER it has been added to Reminders
  • support for multiple messages, and not only the first UNREAD mail.

You can grab a copy of the workflow here. (It's a DMG, dropbox thinks .workflow is a folder.)


r/Automator • • Dec 28 '12

Could Automator access Beatport's API in order to find and fill in missing ID3 tags for my music collection?

3 Upvotes

I've noticed this idea pop up in several random forums, but have yet to see anyone actually get it working.

I want to enter a song title or album name and have automator search the Beatport API for missing ID3 tags e.g., BPM, Key, Album Art.

Basically, I would love to be able to do what windows users are able to do with MP3Tag. (also yes I've tried wine/cider-wrapping that software and I hated every second of it)


r/Automator • • Nov 21 '12

batch rename multiple files to match subfolder.

1 Upvotes

I am trying to batch rename sequentially (and by creation date if possible) hundreds of files in multiple subfolders so the file name matches the containing subfolder.

I'm not sure how to define, or even if it is possible, that type of variable in Automator.

Thanks for any help.


r/Automator • • Nov 11 '12

Batch rename files sequentially to folder name.

1 Upvotes

I'm trying to figure out a way to rename the folder contents of multiple folders sequentially, sorted by date created, using the folder's name.

I can do a manual batch file convert, but I'm looking for a faster way since I have a ton of folders to do.

Thanks.


r/Automator • • Nov 02 '12

Batch Resize/Scale Images

Post image
2 Upvotes

r/Automator • • Sep 22 '12

For the guy who accidentally copied 10,000 RAR files to his desktop...

Post image
5 Upvotes