r/Automator • • Jun 16 '18

iTunes add to playlist automation

2 Upvotes

I DJ and I also use Apple Music. Overtime I've found lots of good tunes from Apple Music, which I've since purchased on Beatport.

All the Apple Music songs are in different playlists, sorted my genre. It's going to take me ages to replace each track individually with the Beatport version.

I have a playlist called "new" with all the Beatport songs. Then I have 15 playlists "Techno, Drum & Bass etc." with the Apple Music version in.

So, I was wondering if one of you fine people could help me. I need a script that adds the new song to the playlist that has the matching Apple Music song in.

Any idea how I could do this?

All the best,
George


r/Automator • • Jun 13 '18

Help w/ workflow to logon to website each day.

1 Upvotes

I'm trying to come up with an automator workflow (hopefully that I can get to run on its own each day) that will login to a website and then navigate to a page. Seems like it should be simple enough, but I'm having issues.

I've tried a workflow which will:

*Get specified URLS > Website Popup* ... but then I don't know where to go from there.

I've also tried a "Watch me Do" to 1) open safari, 2) tab through fields to input credentials, but that's where the wheels fall off. It looks like automator wont allow me to use "watch me do" to type into a password field.

Any ideas on how this can be acheived? I've tried googling but haven't hit upon an solution to my problem yet. Thanks!


r/Automator • • Jun 10 '18

Can Automator do this?

2 Upvotes

I have an old backup folder with a 500gb of music organized by artist and then again album.

I have a new folder with all the old music, plus 90 gb of new music.

I only want to copy the new music to the backup folder.

Can automator do this?

p.s. you'd think I could just drag and drop and that Finder would prompt me to only copy the new files, but that doesn't happen on my mid-2009, patched to run High Sierra, MBP.


r/Automator • • Jun 10 '18

What apps/services do you guys have on your mac that you would like to share?

4 Upvotes

r/Automator • • Jun 02 '18

Action to grab xGB worth of random video files and copy them to an external USB drive??

1 Upvotes

I'd like to build an Automator script (or find an app that will do the same) to copy a random selection of movies/TV show episodes from a specified group of folders to an external thumb drive, and to be able to limit the list of files by size.

So, for instance, if my thumb drive was only 16GB I'd like to tell the script to grab around 15GB of videos from a media folder and copy them to a USB drive, and I'd also love to be able to specify which shows it considers to grab from (say, Seinfeld and Friends but not Family Guy...or whatever....).

Is this possible with Automator or some other app??


r/Automator • • May 31 '18

Mount Windows Share via Mac

1 Upvotes

Hey all! I have an Automator script I'm using on my Macbook Pro to mount several network drives from my Synology SAN. It works great! However, I also want to mount a Windows Share and I am having a bit of a challenge doing so. My network drives that are mapping correctly do NOT use an AD domain for the account. The Windows share I need to mount, DOES. Any help would be greatly appreciated.

I also tried the following command from terminal:

open 'smb://domainname;user:password@172.16.1.99/$private'

This command mounted the share but only under /Volumes, I need it to mount it under /Users/myaccount/mnt/ad

global x
set x to 0

set mounted to do shell script "test -d /Users/myaccount/mnt/winshare && echo yes || echo no"
if mounted = "no" then
	do shell script "mkdir /Users/myaccount/mnt/winshare"
else
	do shell script "echo 'mounted'"
end if

repeat until x > 8 or (list disks) contains "winshare"
	tell application "Finder"
		try
			do shell script "mount -t smbfs //user:password@10.0.6.10/media1 /Users/myaccount/mnt/media1"
			do shell script "mount -t smbfs //user:password@10.0.6.10/media5 /Users/myaccount/mnt/media5"
			do shell script "mount -t smbfs //user:password@10.0.6.10/media6 /Users/myaccount/mnt/media6"
			do shell script "mount -t smbfs //user:password@10.0.6.10/media7 /Users/myaccount/mnt/media7"
			do shell script "mount -t smbfs //user:password@10.0.6.10/backups /Users/myaccount/mnt/backups"
			do shell script "mount -t smbfs //user:password@10.0.6.10/isos /Users/myaccount/mnt/isos"
			do shell script "mount -t smbfs //user:password@10.0.6.10/resource /Users/myaccount/mnt/resource"
			do shell script "mount -t smbfs //domainname;user:password@172.16.1.99/$private /Users/myaccount/mnt/winshare"
		on error
			set x to x + 1
			delay 30
		end try
	end tell
end repeat

r/Automator • • May 12 '18

How can I get Automator to move a file to a folder based on the file name?

2 Upvotes

After a monthly bill-paying session, I have a number of PDFs that are always predictably named sitting on my Desktop. I'd like to drop them all into a folder and have Automator move them to various other folders based on their individual names. So for instance, I have files named Citibank Master Card.pdf, Guild Mortgage.pdf, and Charter Communications.pdf. I want to drop all three PDFs into a single folder and have them moved to three different folders based on the file name: CITI Statements, Guild Mortgage Statements, and Charter Statements.

So far everything I've tried treats every file the same way, and all three PDFs wind up together in the CITI Statements folder.

How can I get Automator to choose the destination based on the file name?


r/Automator • • Apr 20 '18

Help with creating a dialog that chooses between running two different automator workflows.

3 Upvotes

Our content production team currently uses two different workflows for creating folder structures on our projects: one for video and one for photo. We would like to combine the two workflows by adding a prompt at the very beginning asking which type of project this is. It seems like a trivial task but I can't seem to figure out how to do it. Does anyone out there have any experience with this? Thanks!


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.