Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
An application developed by Apple for macOS that implements the creation of workflows.
1
vote
Can I use automator to launch a keystroke when program is idle
I don't know how well it would work, but you could try running something like this in AppleScript Editor.
repeat
tell application "System Events" to tell process "Safari"
set p to propert …
0
votes
Get text from multiple webpages doesnt work if one URL is down
Could you use curl or wget instead?
for u in $(cat urls.txt); do curl -L "$u"; done > output.txt
brew install wget
wget -i urls.txt -U mozilla -O output.txt
1
vote
Automator: How to replace a particular string with the filename?
This would work with multiple files and filenames with special characters:
for f in "$@"; do
[[ ! -f $f ]] && continue
text=$(cat "$f")
printf %s "${text//stringToBeReplaced/${f##*/}}" > …
1
vote
Automator > modifying an URL before downloading it?
Using shell scripting, you could do something like this:
wget $(curl $(<urls.txt) | grep -o 'http[^"]*_small.jpg' | sed 's/_small/_large/')
1
vote
Why is the photo quality terrible in Automator?
I don't know why, but it seems to save the image as a 201x201 pixel tiff file.
You could also install imagesnap with brew install imagesnap and then use something like /usr/local/bin/imagesnap ~/Desk …
1
vote
Automator command line: "Unable to open workflow"
page:
SYNOPSIS
automator [-v] [-i input] [-D name=value ...] workflow
DESCRIPTION
automator runs the specified workflow. … To create or edit a workflow, use
the Automator application. …
2
votes
Launch app periodically with Automator
Using launchd, you could save the property list below as ~/Library/LaunchAgents/com.stackexchange.apple.65970.plist, and then load it with launchctl load ~/Library/LaunchAgents/com.stackexchange.apple …
2
votes
I want to create and automator that opens a specific file
Create a service like this and give it a shortcut in System Preferences > Keyboard > Keyboard Shortcuts > Services:
There's a bug in 10.7 and 10.8 where the shortcuts for services don't always work …
1
vote
Use Automator to drop one letter in the naming
You could use a Run Shell Script action like this:
for f in *;do [[ $f =~ (.+ [0-9]+)x([0-9]+ .+) ]]&&mv "$f" "${BASH_REMATCH[1]}${BASH_REMATCH[2]}";done;exit 0
Or if the filenames don't contain o …
2
votes
Using Automator to move subtitles files
.* pattern from the end, and ${base: -3} expands to the last three characters. [[ $target ]] is equivalent to [[ -n $target ]], or it tests if $target is set and not empty. exit 0 makes Automator not display …
1
vote
Launch Final Cut Pro, make a new project and name it with Automator
I don't have any version of Final Cut, but from the MacScripter search results it appears like at least the older versions weren't scriptable. Anyway, have you looked at its AppleScript dictionary (by …
1
vote
Automator-generated apps - Backwards compatibility
I don't know how backward-compatible they are, but you can also save scripts as applications from AppleScript Editor.
Another option might be to use Platypus.
Platypus is a developer tool for the …
1
vote
Accepted
How to pass inputs to a shell script in automator?
pass=$(osascript -e 'tell app (path to frontmost application as text)
text returned of (display dialog "Enter password:" default answer "")
end')
for f in "$@"; do
printf %s "$pass" | openssl enc …
2
votes
Accepted
Why does my Automator service work in Automator but not when called from the OS?
-v:
$ automator -v ~/Library/Services/lock.workflow/
Starting Automator…
Run AppleScript is running
Run AppleScript is finished
The Automator workflow has completed. … There are several issues with using Automator services to assign shortcuts to scripts though. See this question. …
3
votes
Emulating associative arrays in AppleScript
If you can use a shell script (or do shell script), awk supports associative arrays with string keys and fast lookup.
$ cat widths.txt
2.tif 600
1.tif 500
4.tif 700
$ cat heights.txt
4.tif 1000
2.tif …