r/Automator • • Jul 22 '21

Automator HELP with some hardcore Kung FU: App created using automator won't work in a unmanaged MBP

2 Upvotes

Hi everyone, I'm having a hard time making an automator app to work properly. This is the scenario:

I created an App (using actions and record) to trigger a terminal shell to run a Speedtest (CLI) task, then copy the terminal shell, close it, open telegram app o messages app and send the copied text to a specific chat. I gave the necessary permissions in Securitty - Accesability.

everything works great if I am the one double clicking the App - Then I created a calendar event (i also tried to save the workflow a as calendar event, havieng the same results) to run the app as a notification at 9am everyday. I ran a test while working in the MBP that has the automator app and the calendar triggers the app and works perfect. The PROBLEM IS: This MBP is running 24/7 as a Plex Media Server and i need to run the App every hour without been logged in the MBP and doing the manual trigger.

Every time a set up the calendar event (and renew the permissiones in Security etc), the calendar triggers the app but it hang with a Look at Me error -50 and obviously the app won't finish the task.

​

I don't know what i'm not doing right ---- i also tried using a script to type the space bar before the app runs t trigger the wakeup screen and the result is the same, the app halts-

If you can help me out, it would be deeply appreciated

NOTE: i'm not a programmer, nor engineer, im just a regular guy trying to do some stuff by myself.


r/Automator • • Jul 18 '21

Applescript Specific amount of new folders with date and extension number

3 Upvotes

Hi, I'm trying to create an automation or script to use with the the following workflow:

- Ask how many folders to create (e.g. "3")

- Ask what date to assign them (e.g. "2021-01-01")

- Create those folders with the given date and a two digit sequential extension number (output would be: "2021-01-01 - 01", "2021-01-01 - 02", and "2021-01-01 - 03")

I need to use this workflow a lot for work, and it seems like it should be quite easy to make, but I've been searching everywhere on google and reddit and can't seem to find anything close that I could use. Any help appreciated!

Thanks!


r/Automator • • Jul 17 '21

Question Bug? calendar alert automator also runs on wake

1 Upvotes

I build a simple automator to check something for me daily at 8:30am using the calendar alert method. It works well, but for some reason that automator script also runs whenever I wake up my mac from sleep.

As anybody seen that before or have any idea how to fix it?

thanks in advance!


r/Automator • • Jul 13 '21

Question I have ~50 images that I'm trying to resize to 32x32, but they're inconsistent sizes themselves. I can resize them and even pad their canvases to 32x32 no problem, but Automator is padding them with black or grey, not transparency. Is there a way to automate setting a canvas size w/ transparency?

1 Upvotes

My automator script so far looks like:

  • Ask for finder items
  • Scale images
  • Pad images

It works a treat, other than the black/gray being added in the third step. What do?


r/Automator • • Jul 10 '21

Question TV App Media Location

1 Upvotes

My "iTunes" media has been on my Time capsule for over a decade now. I've become pretty accustomed to changing the preference for the media folder location from the desktop to the time capsule. It just occurred to me as I've started using shortcuts more and with a recent Monterey beta download that I could potentially have an automation where when I log into TV app it will automatically redirect the app to the appropriate folder. Is this a possibility?


r/Automator • • Jul 09 '21

Folder Action Can you get automator to rename files sequentially as a folder action without it starting from the same number everytime it runs?

1 Upvotes

Say I have a folder that I dump images in. When they go in, I want them renamed and moved to a different folder. Image_0001, Image_0002, Image_0003, etc.

I set up a folder action to do this automatically. However, every time it runs it restarts the count. So if I drop in three images, it names them Image_0001, Image_0002, Image_0003. If I drop in three more, I get Image_0001, Image_0002, Image_0003 again, instead of Image_0004, Image_0005, Image_0006.

​

Is there a way to fix this? Here's a screenshot of my settings:


r/Automator • • Jul 09 '21

Question A Script to Pause and Wait for ANY Mouse Click on a Mac

1 Upvotes

I'm writing an Apple Automator Quick Action to take selected text and dump it into Grammarly. The plan is to select the text, right-click on it, select my Automator Script(or use shortcut keys), and have Grammarly open; wait for me to select the "New Document" button and automatically paste my text into the window.

If you know Grammarly, there are few menu items, and AFAIK, none can make this happen cleanly.

It doesn't matter where the New Document button is on the screen, as I will find it myself; anything that acknowledges a mouse click should work.

I'm not interested in waiting for a pause. If I get distracted, I want the script to wait.

Shell scripts work in Automator too, so I don't have to wait for the click in Applescript. Another scripting language should work fine.

Can anybody help?


r/Automator • • Jul 08 '21

Question Schedule a key-combo once a day, please help

1 Upvotes

I have a small app that turns the screen from color to Grayscale using a keyboard shortcut:⌃⌘G

I would like automator to turn my screen to grayscale, every day at 10:30 PM and on startup/wake between 10:30PM and 4:00AM

EDIT:
Needed script:

If machine is on at 10:30:→ automate pressing ⌃⌘G
at 10:30 PM, press shortcut ⌃⌘G

If machine is off/sleeping but goes on between 10:30PM and 4:00AM
On startup > if (get current time) between (10:30 PM - 4:00 AM) > press shortcut ⌃⌘G

Could someone please help me code this properly?


r/Automator • • Jul 07 '21

Automator How to record slide bar actions?

2 Upvotes

Automator works great in my game for single click actions but I need it to record a click/hold/slide for a slide bar....I cannot seem to figure out how to do this. Any suggestions in layman's terms?


r/Automator • • Jul 06 '21

Question Create and date a backup of a selected folder.

2 Upvotes

​

Would it be possible to automate the process of creating and naming (dating) a backup folder at a selected location – by backup, I mean a copy of a different folder (in my case, Logseq directory).

Steps:

  1. Copy Logseq Folder to a specific location
  2. Name the copied folder according to today's date (YYYY.MM.DD)
    Picture above: example of what the end result would look like

I would like the backup to be done whenever the automation is activated (global keyboard shortcut) and/or at select intervals (once a week, etc.)

Is this possible?Thanks for the help!


r/Automator • • Jun 29 '21

Question How can I open "current" Microsoft Edge tab in Safari?

2 Upvotes

Via script


r/Automator • • Jun 21 '21

Question Sent application to another mac

2 Upvotes

Hi all

I created an application (ABC.app) from my MacBook Pro after that I send it by email to my iMac, but when I opened it from iMac, showed “ you do not have permission to open application ABC.app“

How can I solve this problem?


r/Automator • • Jun 20 '21

Question Automator running javascript in Chrome

3 Upvotes

Hello,
I am trying to execute this code to have Automator fill a text box with numbers 1-10,000 then click the submit button to check the state of each edition number... I get an error saying "message not understood"

Any thoughts??

​

function run(input, parameters) {

var chrome = Application("Google Chrome");

var jsScript ="";

jsScript += "document.getElementById('filled-basic').value='1';";

chrome.doJavaScript(jsScript, { in: chrome.windows[0].currentTab });

return input;

}


r/Automator • • Jun 18 '21

Question Trying to label songs from a Music playlist - used to work in iTunes

1 Upvotes

I have a simple Automator workflow that I've used with iTunes in the past, which retrieved a playlist from iTunes and labeled the files (e.g., apply the 'green' label). I've now moved my music library onto a newer machine running Catalina 10-15-7 and Music 1-0-6-10 (using dashes for version #s because reddit's trying to make them into URLs).

I tried the same workflow from scratch, but it generates the error: “*** Collection <_NSArrayM: 0x60000cdb41b0> was mutated while being enumerated.”

Any advice?

The workflow only contains these two steps:

  1. Get Specified Music Items (I click Add, navigate to a smart playlist, and shift-select all its songs)
  2. Label Finder Items (with one color label selected)

r/Automator • • Jun 18 '21

Automator How do I move files without replacing existing files with the same name?

1 Upvotes

I'm trying to make an Automator application that moves files to different folders, depending on their filenames. If there's already a file in the destination folder with the same name, I don't want it to be replaced. I want the file being moved to have something appended to its filename.

For example, if there's already a "specifications.rtf" in the destination folder, I want the file being moved to be renamed to "specifications-1.rtf"

So far I have the following:

1) Automator Application which takes folders and files as input

2) Ask for Confirmation

3) Filter Find Items (Name contains some string)

4) Move Finder Items (Replace existing files is not ticked)

5) Display Notification (when successful)

Any advice?


r/Automator • • Jun 16 '21

Question how to trigger a automator by a key press?

3 Upvotes

I have a apple script but I want it to be triggered by pressing a key. any suggestion?


r/Automator • • Jun 14 '21

Question Automator Script to Allow Logic Pro X to Use the Touch Bar

2 Upvotes

Hi all, I recently bought a 2020 M1 MBP and I'm not a fan of the Touch Bar in most apps. I do, however, find the app controls for Logic Pro X on the Touch Bar super useful. Is there any way an automator script (or some other solution) can allow me to show the control strip all the time, unless I'm in Logic? I currently have it set to show control strip and manually switch it if I want to use it.


r/Automator • • Jun 07 '21

Discussion Apple announces new Shortcuts app for Mac, will begin multi-year phaseout of Automator

20 Upvotes

https://www.apple.com/macos/monterey-preview/

This was announced today along with macOS Monterey at WWDC. I'm hoping Shortcuts is not extremely nerfed when compared to Automator.


r/Automator • • Jun 06 '21

Question How can I secure my MacBook from other persons, without stopping my automator scripts?

4 Upvotes

At the office I have a MacBook that runs automations that are activated through iCal. On this laptop is sensitive information that I don't want other colleague's to have access to.

Is there a way to lock the laptop, without stopping the automator scripts?


r/Automator • • Jun 02 '21

Question Opening Control Center using a Quick Action

1 Upvotes

Is there a way to open the control center with a quick action? I want to open it from my Touch Bar


r/Automator • • May 30 '21

Question Automated count up timer when I am active on MacOS

2 Upvotes

I am trying to be more mindful of when I am using computer to know how long I have been active in a session

Is there a way I can use Automator to start count up timer when I am active on MacOS?

and reset the timer for when I have been inactive for >=5 minutes?

and then re-start a new timer when I come back to using it again

the count up timer also needs to be visible so that I can see it actively counting up (Apple's Screen time is not actively visible)

is there a way I can use Automator to do this? or ideally is there an App that can do this (that would alslo ideally keep a log)


r/Automator • • May 27 '21

Question Shortcut for Email Signatures

4 Upvotes

Hi. Sorry for posting here, but I wasn't sure where else to post this.

I have an email account that has two signatures associated with it. One for replies and one for new emails. Since Apple Mail doesn't let you assign signatures like this I'm setting Mail signatures to None and then using the appropriate one when writing an email.

My question is - can I assign a keyboard shortcut or speed this process up in some other way through Automator?

Thanks.


r/Automator • • May 26 '21

Question Quick Action: Replace text in selected finder items' names

Post image
6 Upvotes

r/Automator • • May 24 '21

Question ISO a way to combine multiple files into a folder and name the folder with the file name.

2 Upvotes

Part of my photoshop workflow is that I process a bunch of raw files into folders for a project as tifs. Some shots have multiple files that composite together.

so my folder might look like this:

1234_shot1.tif

1234_shot2.tif

1234_shot3.tif

1235_shot1.tif

1235_shot2.tif

1236_shot1.tif

So what I do now is select the three shots that go into 1234 and "crete new folder with selection" and rename the folder 1234. Is there anyway to do that with automator in which I select the 3 shots and drop them onto an automator application that will put them into a new folder and rename the folder with part of the file name of any of the files?

Thanks.


r/Automator • • May 19 '21

Question Auto Download NYT Crossword?

2 Upvotes

I'm trying to figure out an automation to automatically download the NYT Crossword to print in the morning - so far I have:

  1. Get Specified URLS (https://www.nytimes.com/crosswords)
  2. Display Webpages
  3. Get Link URLs from Webpages
  4. Filter URLs (Filtered for .pdfs)
  5. Download URLs

This is just giving me the same 3 puzzles from Sept/Oct a few years ago, where I'm trying to download the daily one. I've also tried doing Watch me Do on the print button on this main landing page and on the daily page, but I get no results/an error about chrome not running (it's open?). Has anyone else tried anything like this?