1,171 questions
Tooling
0
votes
1
replies
54
views
How To Make SMS message from text editor, on macOS, not using AppleScript
I wanted a way to draft an SMS message on macOS from within my text editor -- and then launch to Messages with a Service item in the Services menu (right-click). After the text is in Messages, I type ...
0
votes
0
answers
33
views
macOS Automator Quick Action (Zsh script) using cpdf completes with success message but creates no output files
I am trying to create a macOS Quick Action that allows a user to select multiple chapters from a PDF's bookmarks and extract each one into a separate file. The script uses the cpdf command-line tool ...
0
votes
1
answer
85
views
How to pass 2 variables to a shell script in Mac automator
I have an Automator workflow that isn't quite working.
The workflow needs to pick up a file and a comma-delimited list of tags and then pass them into a shell script that runs this command:
/usr/local/...
0
votes
0
answers
83
views
How can I set a variable in a Mac OS Automator app or quick action
I have limited experience with applescripting and the automator app, but have been able to cobble things together before that generally do what I need after a bunch of trial and error.
I'm helping ...
0
votes
0
answers
58
views
How do I run an automator file.app in the background at startup and before login
I need to start UTM and then run a virtual machine in UTM after a defined delay.
I have built an automator application that achieves exactly what I want at login. However, if the machine stops and ...
0
votes
1
answer
39
views
Accessing a mariadb database on the local network from a Quick Action calling a .Net program in MacOS Sequoia
I have a mariadb database on my local network that I want to update when I launch a quick action on an image file in the Finder.
I created the quick action using an automator workflow. The workflow ...
0
votes
1
answer
64
views
Launch Automator Workflow and pass parameter from Apple Script
I have:
an Automator workflow saved as an application "workflow.app"
an Apple Script saved as an application "script.app"
a PDF file residing on Desktop "test.pdf"
How ...
0
votes
1
answer
66
views
MacOS Automator and associated file
Using macOS I have a command line executable that I can, following some advice about using Automator, make usable as an application, with the code:
on run {input, parameters}
tell application &...
1
vote
0
answers
90
views
Edit Excel cells immediately upon opening file
Excel 2019 on Mac.
Whenever I open an excel file, I have to click a cell before I can start editing it, even though a cell is already selected. Typing, arrow keys, enter key, etc. do not work either. ...
0
votes
0
answers
80
views
Get URL of current webpage using AppleScript in Safari doesn't work
I'm create Quick Action (QA) in Automator:
Select no input in any application, check Output replaces selected text.
Add a simple AppleScript:
on run {input, parameters}
tell application "Safari&...
0
votes
1
answer
116
views
Native macOS Text Replacement (adding records)
I found a 2020 year script on the Internet, with which you can create pairs (key value) in the keyboard settings text replacement
Here's the source
Here's the script
use AppleScript version "2.4&...
0
votes
1
answer
141
views
AppleScript Automation for Capture One 21: trouble with script for monitoring a folder
I’m hoping someone can assist me with an automation issue I’ve been working on for the photo software "Capture One 21“. I need a folder (the capture folder on my desktop) to be monitored, and ...
0
votes
1
answer
65
views
Pass variable from Automator into Shell Script to make a parent directory
I am trying to automate files with renaming and sorting on a per project basis. I was able to get what I wanted essentially, but want to take it a step further. In Automator, I ask for text then set ...
0
votes
1
answer
126
views
Automation to Convert Mac to Windows Paths
I'm migrating to MacOS but most of my organisation works with Windows. We frequently exchange links (via email / teams) to a network drive mapped to "D:\".
I am exploring an automation to ...
0
votes
0
answers
37
views
Diagnosing trouble with an Automator run shell script extracting images from a video with FFMPEG
I'm receiving an error in Automator "The action "Run Shell Script" encountered an error:"
My script works perfectly fine when running it in terminal and gives the exact outputs I ...
1
vote
1
answer
136
views
I can't tell System Events to click menu items with an apostrophe in it
I recently switched my laptop to French from German.
In German, I used an applescript that clicks "Open Recent" in the menu "File" so I can access recent files with a keyboard ...
0
votes
0
answers
60
views
AppleScript file renaming folder action script errors out
I sought to create an AppleScript folder action to rename files added to a folder by giving them a warning prefix if they lack a double space and three space prefix if they lack spaces altogether. I ...
0
votes
1
answer
130
views
How to add hours to time in Automator script using AppleScript?
I put together an AppleScript on Automator that has the goal of
taking text (in a pre-determined format)
extracting the dates/times
creating macOs Calendar events with these dates/times
The script ...
0
votes
0
answers
536
views
How to execute a python script on Mac with Shortcuts/Automator
I am trying to find out if it is possible to execute a Python script I made with one click/Shortcuts.
I.e. I don't wish to open the terminal or VS code to execute it, but "just run it" as it ...
1
vote
1
answer
84
views
Classify files in a directory structure YYYY-MM-DD, with Script in Automator, getting it from their filenames
Having media (pictures and videos) without meta-data date, but are named with this date structure (YYYYMMDD_HHMMSS.jpg/ .mov/ .png...), I'm trying to classify them in folders named as their date, YYYY-...
-1
votes
1
answer
102
views
Adding suffix to duplicate file in Apple Script
I am attempting to write a script to allow me to keep my Downloads folder clean, this is great for uni/work as files get moved to their correct folders to allow linking in apps etc.
I have a script ...
0
votes
1
answer
40
views
Reformatting YYYYMMDD Creation Date in Automator Shell Script to YYMMDD Creation Date Instead
I just want to change my automator quick action from my current script of YYYYMMDD to YYMMDD. Seems like it should be simple enough but I've been trying to figure this out for days now && I'm ...
-1
votes
1
answer
94
views
Applescript folder actions
Anyone know why my buttons aren't working for a folder action in applscript?
This is designed to launch from Automator and keep the Downloads folder clean with options to rename duplicates then move ...
0
votes
1
answer
168
views
Use a Script in Automator to classify files in a directory structure YYYY-MM-DD, getting it from their filenames
Having thousands of pictures and videos without meta-data date, but with the date structure at their name (ex: YYYYMMDD_HHMMSS.jpg), want to classify them in folders with their date, YYYY-MM-DD.
The ...
-1
votes
1
answer
872
views
"Operation Not Permitted" - Cannot get read access from App created with Automator Bash Script
I am stuck trying to access this specific file from an App I have created with Automator. When the exact same Bash script is run from Terminal, all is dandy. I have checked permissions on the file and ...
1
vote
1
answer
244
views
SIPS to convert PDF to JPG + resize resulting JPGs?
Trying to use Automator to create thumbnail images for a bunch of PDFs. I want to convert the PDFs to JPGs, then downsize those JPGs. The first step has gone fine, but I've tried a bunch of ways to do ...
0
votes
1
answer
69
views
Populating Applescript choose from list with Excel column data
I'm using Applescript to send emails with outlook on Mac and pulling data from an excel file with the following structure:
My goal is to use all non-empty cells in columns A:C to populate a drop-down ...
0
votes
1
answer
156
views
Capture Drag and Drop Event with AppleScript
since Apple Mail doesn´t use Plugins in Sonoma anymore and "never" was able to DND eml-files to webapps, I want to develope an AppleScript that captures a Drag Event in Apple Mail. This scpt ...
0
votes
1
answer
331
views
MediaInfo Output command not working with Automator (command not found: mediainfo)
I’ve made myself a nice mediainfo --Output command. The command executed in the terminal works well and I get a list of all my the parameters I wanted to have …
But I would like to implement this ...
0
votes
1
answer
1k
views
Automator Workflow doesn't show on Services menu in all apps
I created an automator workflow that opens a specific page in google chrome. When I assigned a keyboard shortcut to it, it only works when Chrome is the active application. How do I get this keyboard ...
1
vote
0
answers
176
views
Add another application to the Quick Action Library in Automator mac
I m using Mac Automator app to add new actions to the right click quick menu for files and folder. As can we seen in the image we have a number of actions available for mail app and other apps. I ...
0
votes
0
answers
66
views
Is there an option to make automator ask for specific password to proceed
I have an automator workflow, that I want to make unworkable without specific password: is there an option to do it?
I've tried to use "Ask for text" action, but there is no option to ...
-1
votes
1
answer
176
views
How to correctly parse string to JSON using javascript in Apple Automator?
I am trying to make a simple home automation workflow using Automator on OSX.
It starts by getting a JSON from an HTTP request using shell script. The JSON is then modified using JavaScript and posted ...
0
votes
2
answers
336
views
Split any file in multiple files after a specific text string [closed]
I have a single .dat file that consists of a lot of webp images.
I would like to split that file everytime before the string WEBM and safe that portion as a .webm file.
I would love to do this with ...
0
votes
0
answers
110
views
How do I use Automator to create an app or write a script which restores the custom icon of Google Chrome?
I use a custom icon for Google Chrome, as I do with many of the other apps on my MacBook. My issue is specific to Chrome, where randomly but certainly the custom icon disappears and is replaced with a ...
0
votes
1
answer
141
views
How to make specific command line programs usable by Ruby code running in Automator
There are many ways in ruby to make a system call.
I'm currently using open3 in a method like this:
def run_system_command { |system_command|
stdout_str = ""
stderr_str = ""...
0
votes
2
answers
103
views
How can I Find / replace a nondescript number with a formatted date in a file, in Applescript?
I've looked everywhere and I can't seem to find the exact answer I need.
I am creating a applescript in automator to FIND a nondescript number / date then I need it to replace that number with a ...
-2
votes
2
answers
895
views
Trying to write Automator app to open Automatic 1111
I recently started playing with Stable Diffusion, and specifically Automatic 1111. Since it's not exactly a standard macOS app because it needs to be open with a CLI command and then loaded in a ...
0
votes
1
answer
1k
views
automator workflow to launch or quit application
I am trying to make an automator workflow that opens an app if it's not already open, or closes the app if it is open. I need a script that will run the QuickShade.app
when I tap the button to run the ...
0
votes
0
answers
174
views
Create Apple script / Automator's app for find/replace in PDF files
I have a small problem with PDF files that I export from Figma.
I make a text link in Figma file
I export PDF with this text
I open PDF in Acrobat (or whatever viewer) and I see my link in black box (...
0
votes
1
answer
777
views
How to make Folder Action to watch a folder and if it sees 2+ files with same filename and diff ext, create new folder and move those files in folder
I've been searching for weeks and have been unsucessful on finding a way on my Mac running Ventura to help solve this wish.
I have a lot of files that have the same file name and are saved with ...
0
votes
0
answers
134
views
in MacOS Ventura, how to create a desktop shortcut for toggling the system setting for text-to-speech?
A little background: I'm helping a friend who had a stroke a few years ago and who has global aphasia; as a result it's very difficult for his brain to consistently derive meaning from written words ...
-1
votes
1
answer
119
views
Blur image 50% when drop into a folder
I have a bash script, connect to folder action in Automator. When I drop an image into ~/Desktop/Blur folder, it should generate the blur version into that directory.
I've tried
#!/bin/bash
# Change ...
0
votes
1
answer
96
views
Get path from both local and iCloud directories [duplicate]
I have an Automator Quick Action script that converts PNG to ICNS, keeping both the original file name and its original position. However, if used inside an iCloud folder or a folder with a space in ...
1
vote
1
answer
68
views
Reduce Selected Image File to 700 pixel via Apple Quick Action
I'm new Apple Automator scripting, I create a new Document type (Quick Action)
named, reduceTo700
I have it Run Shell Script
for f in "$@"
do
/usr/bin/sips -Z 700 "$f" --out &...
0
votes
3
answers
179
views
Applescript works in Script Editor but not in Automator
I'm pretty new to Applescript but have played a programmer on tv for years. The below run handler works fine but when I try to use either the replaceText() or findAndReplaceInText() handlers to ...
3
votes
2
answers
5k
views
Why imagemagick mogrify command not found and how to solve this?
I'm trying to write automation service that gets all images exclude .jpg from the current directory (or selected files), convert them to .jpg by imagemagick mogrify and delete old images.
script: ...
0
votes
1
answer
439
views
How to use my FFMPEG code in Automator (Mac)
I have an ffmpeg code that converts .mov files to .mp4 files. I would like to set up a 'watch folder' system on my mac, so that when I drop files into a specific folder, it will automatically convert ...
0
votes
1
answer
174
views
Applescript Occasionally Freezes Automator
I'm trying to use this applescript to modify a file path written to a text file, copy the modified path to the clipboard, set it as variable thePath, use it to pull a Google Drive link from a list, ...
0
votes
0
answers
125
views
AppleScript does not run from Automator
I try to implement a folder action with Automator.
So i use the module "folder action" and there defining the folder.
The only action module in there is "Execute AppleScript" with ...