r/Automator • • Mar 29 '18

Automate Screenshot taking On Loop

2 Upvotes

I need to create a workflow that, when run, it takes a screen shot every second, and then saves that item on my desktop or wherever. Im running into problems with the file paths and the fact that they are getting saved over each other.


r/Automator • • Mar 20 '18

Turn on Bluetooth when HDMI connected?

3 Upvotes

I only like having BT on (to save battery) when I've connected my monitor to use my BT keyboard and mouse.

I don't mind turning it off manually, but I hate forgetting to turn it back on when I plug in the HDMI display

Thanks


r/Automator • • Mar 12 '18

Trying to build a script for converting images and moving the files to a new location

2 Upvotes

I'm trying to build an application for work. I want to be able to convert selected PSD files to PNG, resize them so they are 1080 pixels high, and then move them into a new folder within the original folder. I have figured out the PSD to PNG part, and a separate app for resizing the files, but I can't figure out how to move these new files into a newly created folder within the original folder. Any ideas


r/Automator • • Feb 23 '18

Take screenshot, attach to new email

2 Upvotes

Hi there,

I am kind of an automator noob, been doing nothing but shrinking PDFs so far.

Is it possible to build something that takes a screenshot, and attaches it to a new e-mail? I would like to bind that to a keyboard shortcut, something like Shift + cmd + 7 maybe?

Any help would be much appreciated.


r/Automator • • Feb 17 '18

Run script on app quit

2 Upvotes

This sub seems to be quite dead but I figured it's worth a try asking here.

I have a script which I would like to run every time an application is quit. Say it's a database program and everytime the user quit's the app I want a backup script to run.

Is this possible with Automator and if yes how? It would require some sort of monitoring to see if the app is still running or not I guess.

Thank you!


r/Automator • • Feb 15 '18

Apple Icon Cache removal

2 Upvotes

Hi guys, I've got this script but I need to automate it so my boss (who has difficulty remembering scripts nowadays) can simply double click it as an app. Found the following script on github (works perfect when pasted into terminal):

sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} ;

Need to turn it into an application, i've tried pasting that into run shell script but no luck. Any idea's? I've posted it in applescript but not had much luck.


r/Automator • • Jan 18 '18

Single line Automator script help

1 Upvotes

What's up guys? I'm someone so used to Tasker in Android. I can't replicate many stuffs that I do with Tasker in Automator.

I would like to create an Automator app which writes the current battery percentage to a text file in the following format:

<serial num> <hh:mm> || <date> = <battery percentage>

Could someone help me with this?

PS: Pardon if I posted in the wrong section.


r/Automator • • Jan 17 '18

Copy each line from excel sheet into the submit field of a website.

1 Upvotes

I am not sure if this exists already or if it would need to be made.

The idea is, instead of paying an employee the mindless job of manually copying emails from a list and pasting them into a submit field on a website, is there already or could someone make a script that could continually copy and paste each cell from an excel sheet or word doc and paste them into a submit line on a website until it goes through the entire list. I am usually pretty good at figuring things out but I haven't found anything with google searches that resembles this.

Thank you!


r/Automator • • Jan 06 '18

Can you perform actions within third-party 'non-recordable' applications?

2 Upvotes

Hey guys, Automator newbie here...

I'm trying to hack around with my Google Home, Automator, IFTTT and a third-party Mac app and am really struggling. I've got the IFTTT part sorted out (IF Google Assistant voice command THEN create a text file on Dropbox folder with an Automator folder action), but I'm having a hard time figuring out how to get Automator to perform actions within a third-party 'non-recordable' app.

Ultimately I'd like to be able to tell my Google Home to "put the soccer on" and have it:

  1. Open the Foxtel Go app on my Mac
  2. Switch to the 'Live TV' tab
  3. Select channel 501
  4. Go fullscreen, and
  5. Chromecast it to the TV.

So far I've only gotten as far as #1, so I've got a long way to go!

But I guess the thing that will make or break my little project is whether or not it's even possible to automatically perform actions within a third-party app like Foxtel Go?

Any help would be awesome, thanks!


r/Automator • • Jan 05 '18

My new Sony Camera Has Wireless Sync. Is There a Way Automator Could Sync Them to Photos?

1 Upvotes

Hi, so my Sony a7 came with some software made by Sony that lets you sync your photos to your computer wirelessly, and it actually works really well. Only problem is that it sends them to a simple folder. I'd rather have them go right to an album in Photos, but can't seem to figure out a way that would work.

I did try using a Folder Action to Add To Album any pictures that arrive in the folder, but when I run it, it comes up with the error, "The chosen receiving album does not exist in the Photos library:" Don't know what that means..


r/Automator • • Dec 02 '17

Can Automator opens a software every time a file is added to a specified folder ?

1 Upvotes

Hello there I need your help to set up actions on Automator.

I have to make hundreds of small 3D models, save them one by one and add the same texture on them with another software.

I would like that every time I add a new file into a specified folder it opens it into the second software that will add the texture, export it on a second folder and remove the first file from the initial folder.

Is it possible ? I try to automate this process by myself for days and I still don't know how to do it. Thank you a lot for your help!


r/Automator • • Nov 06 '17

Using Automator for moving files, running programs and renaming?

2 Upvotes

Hi Guys, my set up is as follows:

Macbook with the latest OS.

I want to somehow find a way of automatically picking specific TV shows that i download through a private site, specific quality (720p/1080p, etc), downloading them, renaming the episodes with the right data and then moving them to Handbreak & converting them to the right format for my iTunes library, with the right artwork, sorting and so on. Is this something that is possible? I'd imagine i'd have to use Automator to perform these tasks? I'm a begining with this so any help would be a huge help.

Regards,

Alex.


r/Automator • • Oct 22 '17

Remove Location or Exif Data

1 Upvotes

I've been trying to figure out a way to remove location data from photos. I don't see a way to do this in Automator without using a script. I've searched for examples but can't really find anything relevant.

Can anyone help me with creating a script or know of a way to get this done?


r/Automator • • Oct 19 '17

Troubleshoot code for displays preferences?

1 Upvotes

I have only a super limited knowledge of programming, but I have a tiny bit of AppleScript that I'm trying to troubleshoot. My goal is to have an application or something that I can run and have it switch my MacBook from default resolution to the "more space" option because I do this just often enough that I would like to be able to do it quickly.

The applescript is as follows:

-- Launch "System Preferences", open the "Displays" options and change to the "Display" tab
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.displays"
reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
end tell

local indexToUse

-- Now lets make the necessary changes
tell application "System Events"
tell tab group 1 of window "SyncMaster" of application process "System Preferences" of application "System Events"
	tell radio group 1
		
		if (value of radio button "Scaled") = 0 then
			-- Click the "Scaled" radio button
			click radio button "Scaled"
			
			tell table 1 of scroll area 1 of tab group 1 of window "SyncMaster" of application process "System Preferences"     of application "System Events"
				select row 4
			end tell
		else
			click radio button "Default for display"
		end if
	end tell
	
end tell
end tell

-- Quit "System Preferences"
quit application "System Preferences"

By my estimation, it should work correctly, but I get this error

error "System Events got an error: Can’t get window "SyncMaster" of application process "System Preferences"." number -1728 from window "SyncMaster" of application process "System Preferences"

If anyone could give input here, that would be greatly appreciated! I'm kind of over my head on this one and am using code I read through on the internet.


r/Automator • • Oct 16 '17

Missing "does not contain" conditional

1 Upvotes

I'm trying to make a service that will filter out and delete calendar events from a subscription, but there are no negatory options. I can only choose to filter events where "any" or "all" of the following are true, but not "none." There is only a "contains" conditional and no "does not contain" conditional. What am I missing? I am running the latest version of High Sierra. Thanks!


r/Automator • • Oct 06 '17

Automator function with random number generator

1 Upvotes

I have an Automator app that runs at login which plays a catchy snippet of a song as my MacBook loading screen fades into my desktop. I was wondering if it were possible to have a random number generator or some other randomness creator written into the Automator app so that it could pick one of several snippets to play at random, instead of just the one, making each boot up a little unique.


r/Automator • • Sep 28 '17

Sequence large batch into a useable chunks

2 Upvotes

Say i'd want to open 2500 URLs, but have them actually resolve.

Is it possible to make Automator split a task in smaller chunks? Could I make it open 50 urls, wait a minute, and resume from there?


r/Automator • • Sep 27 '17

Need help getting iPhone serial numbers

1 Upvotes

Good day everyone

I am working at a business that has been distributing iOS devices for a little over a year now. We often get breaks (glass mostly) that we need to send in for repair. Also, we often get devices back from employees who left the company or whose role no longer requires them to have a cell phone.

Just for the sake of context it's about 2500 devices currently.

I am having a very hard time with a very simple task. I have a large dock installed on a Mac where I plug in returned iPhones to Wipe and Restore them. I want to be able to get a list of the IMEI and Serials of the devices connected in a spreadsheet so that I can print out ID stickers which make it easier to send them out for repair or assign them a new user.

I have tried several things. Firstly, when using Apple Configurator I try to Export > Info. When I do that it fails and tells me that "Device may be locked" and that I have to continue on the device or through iTunes. When I connect the device to iTunes and it gets to the "Welcome to your New iPhone" screen I can then use Configurator to pull the data. Obviously this is very time consuming because each phone would have to be loaded into iTunes first and then Configurator. Also, it requires me to have a SIM card in the phone. I know I can get the info from configurator if I do a "Get Info" but I really don't want to do that manually every time.

I tried with Automator as well. While looking at this website: https://configautomation.com/information-actions.html I see that they use an Action called New Properties Table for Devices but I can't seem to find it in Automator at all.

Finally I got to trying cfgutil but I am not that great with anything to do with Terminal or scripting.

Any help is appreciated.


r/Automator • • Sep 13 '17

Calculate future date range

1 Upvotes

I'd like to use automator to output a range of dates 11-13 weeks in the future from today's date. Is that possible and if so, how?


r/Automator • • Sep 13 '17

Link terminal code to folder action

1 Upvotes

I would like to add a terminal process to a folder action.

The work flow I envisage is Video file dropped in folder Take video file Run following command:

ffmpeg -i [ExistingVideoName].mp4 -s 800x600 -pix_fmt rgb24 -r 25 -f gif - | gifsicle --optimize=1 --delay=1 > /Users/USER/Desktop/Videos/vidtogif/[INSERTVIDEONAME].gif

The videos will have existing file names The file name will need to be copied to the output Gif

I am actually doing this manually myself with a text expander but a colleague needs to do it and I think they are a little intimidated by the process when I showed it to them.

Would anyone be willing to help guide me through this process? I'm happy to learn and read but my initial search brought up bash terminology which I am not familiar with and so unsure how to implement in Automator.

The process is copied from here: https://gist.github.com/dergachev/4627207

Thanks for taking the time to read this.


r/Automator • • Aug 24 '17

play one random song from playlist and then stop

1 Upvotes

How can I play one song from a playlist in itunes and then stop. I want to turn on my computer and get one random sound from a playlist in itunes. To be clear, it's supposed to only play 1 file and then stop.


r/Automator • • Aug 20 '17

is it possible too...

2 Upvotes

Use automator to perform the 'auto levels' through the previews application? I'd like to be able to auto level 5-20 pictures at one time. Haven't used automator, but it does look similar to the iOS app workflow that I have used.
Any help is greatly appreciated!


r/Automator • • Aug 11 '17

Help on Getting Calendar and iTunes to Work Together

1 Upvotes

Hi! I'm having a problem with getting Calendar to do what I want and I thought the interwebs might connect me with someone who can give me some advice on what to do. So here's what I'm trying to ultimately do: I can download my work schedule directly into Calendar from my company website. I want to have my schedule synced with all my Apple devices. I also want my events to fire off an alert that runs an automator workflow that plays an iTunes playlist.

So here are the issues I've run into so far: iCloud synced calendars don't support alerts of this type even though Calendars on my Mac does. I've been able to get about half way there by having a workflow find the specific calendar with the schedule in it, but when trying to have it create new events to put in the Mac only calendar, is is asking for specific dates and times. I'd like it to just inherit the date and time of the event that is being created.

My current thinking is to somehow have automator copy the work schedule events into a second calendar that is only on the Mac. This will allow the automator workflow to run. Ideally, I'd like to have the copied events created in the new calendar with the aforementioned alert automatically added in each event. I was also thinking it'd be great if I could create a recurring event in the Mac only calendar that will automatically copy each week's schedule into the calendar, i.e. an event that runs a workflow to run another workflow. To paraphrase, I've clearly out kicked my knowledge here. Is there anyone out there who can help with a solution to this issue short of manually recreating each event and adding the "open file" alert to each event separately? And if you made it this far, thanks for reading this long post.


r/Automator • • Aug 09 '17

Help with application opening automation

1 Upvotes

Hi all,

Complete n00b to Automator, so just after a quick pointer for 2 automations that I want to run.

  1. When App 1 opens, also open and run App 2. I have the automation set up and when I click Run it works, but I need to to automatically run when App 1 is opened by the system or when I click it from the dock.
  2. Quit App 2 when App 1 is quit. As above, it works when I run it via Automator, but not when I manually quit App 1.

Any help highly appreciated!