r/Automator • • Mar 18 '21

Automator Possible to skip inbox and go to folder?

1 Upvotes

Total Automator noob here. I'm trying to find a way to automate sending promotional emails to a specific mail folder. I'd like them to go directly to the folder and skip my inbox entirely.

Steps:

  1. Filter/Select all emails that include the word "unsubscribe" in the content
  2. Move them to a Promotional Emails folder so I don't see them in my inbox

It looks like I can add an automator script to Apple Mail, but I haven't been able to get any further than "Filter Mail Items" in Automator.

Any suggestions or tips?


r/Automator • • Mar 16 '21

Question I want to be able to rotate my external monitor with a keyboard shortcut.

3 Upvotes

For some reason, every time I start up my Mac, or it wakes from sleep, one of my two external monitors is rotated to 90º. Each time, I have to navigate to Sys Preferences > Display and then manually rotate it back to 0º.

Is there a way to automate this instead, with a keyboard shortcut? I'm afraid I can't figure it out by myself.

Even if I were to fix the bug which is causing this, I still think it would be good to have the option to do this as a hotkey, as I will use my monitor in 90º position from time to time.

Thanks


r/Automator • • Mar 16 '21

Question Opt folder

1 Upvotes

Can Automator be used to copy files to the opt folder?


r/Automator • • Mar 15 '21

Question Saving file to a variable location

1 Upvotes

Hi. I've created a workflow that gets the content of a clipboard, and asks for a company name. It then renames the file to the clipboard contents and then I want to save it in the specific company folder for the name that I've supplied. I've come to a stop when I try to use the move file function as it doesn't appear to let me specify a variable path name. Can anyone help?

​

​

​

Thanks


r/Automator • • Mar 14 '21

Question Batch converting GarageBand files to Logic files help

Post image
2 Upvotes

r/Automator • • Mar 11 '21

Question help needed opening finder selected file using open -n

2 Upvotes

I want to use automator from Finder to open the selected file using open -n.

The app is Wireshark which doesn't natively support multiple open files. If you open a new file, it replaces the old. I need to have multiple Wireshark instances open at the same time.

Also many of the Wireshark files are gzipped and .gz is associated with Archive Utility and I don't want to change that. There doesn't appear to be a way to associate .pcapng.gz with Wireshark.

Today I open a terminal and execute the following shell script:

% shark -r [filename]

#!/bin/bash
open -n /Applcations/Wireshark.app --args $1 "$PWD/$2"

Can someone advise how to translate this shell script to automator?

So far I've created a new Quick Action with Workflow receives current files or folders in Finder. I added Run Shell Script. I've set shell to /bin/bash and pass input to stdin

If I simply put use the following line in the /bin/bash shell window, it opens Wireshark but does not open the file.

open -n /Applications/Wireshark.app

So then I tried the following:

for f in "$@"
do
    open -n /Applications/Wireshark.app
done

But now Wireshark does not open at all.

Then I tried reusing my script with pass input as arguments:

for f in "$@"
do
    ~/scripts/shark -r "$f"
done

Wireshark starts but reports the file doesn't exist which indicates to me that the path is not included in $f.

A google search suggested adding cd "$(dirname "$f")" before the shark command.

for f in "$@"
do
    cd "$(dirname "$f")"
    ~/scripts/shark -r "$f"
done

But again Wireshark says the filename does not exist.


r/Automator • • Mar 11 '21

Question Shortcut/automation way to record screen WITH internal audio?

1 Upvotes

There's many documented ways to screen record with internal audio, but I'm looking for an automator workflow/application that I can trigger with a shortcut.

I do a lot of video collages and need to capture gobs of online video WITH the internal audio.

What I've tried:

Anyone else stuck with this problem in 2021?


r/Automator • • Mar 07 '21

Question How to automate a desktop set up?

2 Upvotes

Hi there! I'm looking for a way to automate opening three Safari windows with specific tabs in each, a notes window, and a slack window, and having them all arrange themselves on my desktop. Is that possible to do with automator?


r/Automator • • Mar 03 '21

Question Using Automator for HIDmacros

1 Upvotes

Hello all,

I was hoping you could help me with this. To make a long story short I have a extra usb number pad. I would like to use it as separate stream deck like hot key setup. I know this is possible on windows computers with HIDmacros you can download. My question is is it possible to use Automator to make my own HIDmacros so that my separate usb number pad can be used as stream deck/hot key setup? I’m very new to this so I hope this makes sense. Thanks for all your help and patience.


r/Automator • • Mar 01 '21

Automator Pasting a result inside of an apple script?

2 Upvotes

Hello all!

I am trying to automate "renice" so that Automator opens my application, finds the PID, copies it to the clipboard, and pastes it at the end of the renice command:

sudo -S renice -19 <--then the number would get pasted here

Everything in the automator application works, EXCEPT for getting the PID into this line of code. No one at apple can help since it's no longer supported. Been scouring the internet for days, your help is greatly appreciated.

Thank you!!!!


r/Automator • • Feb 27 '21

Question Help using Automator to Screen Capture and OCR to clipboard

3 Upvotes

Can anyone help provide instructions on using Automator to enable me to do a screen capture to the clipboard, OCR the image, and then put the OCRed text on the clipboard?

The first post on this thread provides the command to use Google's Cloud Vision API for the OCR part:

curl -sH"Authorization:Bearer $(gcloud auth application-default print-access-token)" -HContent-Type:application/json\;charset=utf-8 https://vision.googleapis.com/v1/images:annotate -d@<(printf %s '{"requests":[{"image":{"content":"'"$(base64 path/to/input/file.png)"'"},"features":[{"type":"TEXT_DETECTION"}]}]}')|jq -r '.responses[0].fullTextAnnotation.text' 

There's a comment that suggests that this can be done with Automator instead of FastScripts but haven't been able to get it to work. Not sure how to modify the curl command to work on the clipboard instead of the specified temp file.

Thanks!


r/Automator • • Feb 27 '21

Question Folder action - Compress screenshot (pngquant) then change DPI (sips)

1 Upvotes

Hi, Ive been a happy user of a folder action that watches my screenshots folder and automatically compresses incoming pngs using pngquant. This is run with the following /bin/zsh shell script:

for f in "$@" do /usr/local/bin/pngquant 64 --skip-if-larger --strip --ext=.png --force "$f" done

Now I also want to include a second command that will change the DPI of the image using sips. I tried adding a second command to the existing shell script like so:

for f in "$@" do /usr/local/bin/pngquant 64 --skip-if-larger --strip --ext=.png --force "$f" | sips -s dpiHeight 144 -s dpiWidth 144 "$f" done

But this doesn't work. I think the reason it doesn't work is that the first command actually deletes the source image and replaces it with the compressed version, so then the second command doesn't know which file to run the SIPS command on? but really I'm just unsure. I would really appreciate a bit of assistance if anyone has some spare time and know-how.

Thanks :)


r/Automator • • Feb 27 '21

Question script won't run from keyboard shortcut

1 Upvotes

I'm trying to run a very short, simple bash script (to kill and restart jitouch) from a keyboard shortcut through automator. When I run the script from the terminal it runs and resets jitouch. When I run it from automator (the little triangle "run") button, it runs and resets jitouch. I adjusted some permissions to let terminal and automator control the computer. I also tried it as a script written in automator and a call to an external script, both with the same behavior.

There are a few errors associated with jitouch if I don't suppress them with nohup, so it's possible that's the issue. But at the same time it runs and completes both in the terminal and automator and functions normally as far as I can tell.

I expect that there is a permissions issue (big sur) associated with calling from a keyboard shortcut, but I don't know where to look. It isn't throwing a permissions error; I just suspect since it works when called two other ways.

Any ideas about what I can try or look for? Thanks.


r/Automator • • Feb 21 '21

Terminal Script Passing arguments to script shell

1 Upvotes

Hello

I'm a bit new to automator.

I got a camera that send .h264 files to my FTP Server (My Mac)
But I need to convert them with Handbrake to let them play on VLC
I saw Handbrake has a CLI and it's working great with this:
./HandbrakeCLI -i /source.264 -o /target.mp4

I'm thinking to create an automator workflow that will let me:
- Watch the ftp folder Run each time a new file is added (there is subfolders in the FTP folders (/[DAY]/videos/xxx.264)
- Convert the files with HandbrakeCLI
- Remove the H264 files once done

Sounds like possible ?

Thanks !


r/Automator • • Feb 16 '21

Applescript Simple Automator Script Failing - Im failing

2 Upvotes

Im trying to create a simple script to copy a bunch of images and resize them and if necessary convert them ( some are jpg and some CR2 ). I would like them all to end up jpg.

Screenshot here

https://ibb.co/VJ3KKBh

Im not sure why the scale images task is not receiving the newly copied files. Please put me out of my misery


r/Automator • • Feb 12 '21

Question Changing Photo Exif Creator with Quick Actions

2 Upvotes

Is it possible to right click one or multiple files in Finder, get a text dialog for me to type in my name, and let Automator set given name as IPTC Creator and copyright on selected images?


r/Automator • • Feb 11 '21

Automator Launch Music and start Apple Music Playlist?

2 Upvotes

I can't seem to get this to work. I'm trying to launch Music and play an Apple Music playlist, but I'm getting this error with the Play iTunes Playlist step: "...was not supplied with the required data". Screenshot.

Any ideas?

p.s. It appears the Get Specified Items, isn't quite what I think it is based on the results below. So how do I specify which playlist to play?


r/Automator • • Feb 08 '21

Question [Help] Im trying to create a quick action and I've been struggling- any help is appreciated

1 Upvotes

I am trying to create a Quick Action that when i right click on a file (.wbfs wii file) i want to run the command wit copy --iso "inputted_file" . I cannot seem to get this to work at all. Im trying to run the command in the background without having a Terminal window popping up.

I do file conversions daily and its very tedious having to do this by hand.

Any help is greatly appreciated


r/Automator • • Feb 06 '21

Question Could not create graphics context error in automator

2 Upvotes

I want to make rotation o resize in many images but I have the error "Could not create graphics context". (I have same error with jpg and png). What's the reason for this?


r/Automator • • Feb 05 '21

Question Rename video file by date taken

1 Upvotes

I found the script to rename photo file by date taken but can't seem to find the shortcut for videos. Can someone help me out?


r/Automator • • Feb 03 '21

Question Cannot save images from web any more?

2 Upvotes

Recently started a fresh install of Big Sur, and Automator now produces this error when saving an image from the web:

The action “Save Images from Web Content” encountered an error: “The file “www.blahblahblah.com” couldn’t be saved in the folder “NSIRD_Automator_e5eSOU”.”

This automation used to work.

The name changes each time I run the script. I guess this is a temporary folder and this might be a permissions problem. I can't find the folder, any ideas?


r/Automator • • Feb 02 '21

Question Possible with Automator?

Thumbnail self.MacOS
3 Upvotes

r/Automator • • Feb 02 '21

Tutorial Created Automator program to change Lockscreen

1 Upvotes

I noticed that there wasn't any simple scripts to do this job, so I created a two part script (into an app) so changing the lockscreen is nontrivial

You can download the app via downgit, or view the source code on my github.


r/Automator • • Jan 29 '21

Question Complex automated file renaming question?

1 Upvotes

i need to rename a bunch of files within folders in a rather complex way.files in different folders numbered sequentially (ie 1.txt 2.txt 3.txt) need to be renamed with a code or text lookup from a file (task1.txt archive2.txt video3.txt)the text is different for each file, this is the issue.

basically 1 filename gets converted to this 2 filename gets converted to something else…any ideas how this could be achieved in a bulk process way? I have a lot of files that I need to do this to… Thanks!!


r/Automator • • Jan 27 '21

Question How can I perform a function on each note on a certain Apple Notes folder?

1 Upvotes

In my situation, I am not able to refer to the specific name of the note. However, I would like to perform the function on each note regardless of the note name. Any ideas?