Skip to main content

Questions tagged [script]

A collection of commands that may be from a CLI Shell, or programming language such as AppleScript, which are executed in order with limited iteration, usually as a way of automating actions or events.

121 questions with no upvoted or accepted answers
6 votes
0 answers
1k views

I am looking a way for a script (either bash or AppleScript, doesn't matter) to detect whether the state of the screen or the user login session is locked or not (i.e. the user will need to type in ...
S P Arif Sahari Wibowo's user avatar
5 votes
1 answer
267 views

I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this. ...
GodzFire's user avatar
5 votes
0 answers
281 views

In a shell script, how can I tell whether or not the script is running on a (public) beta version of macOS? Preferrably, I would like to check this without matching a specific version of macOS, since ...
Klas Mellbourn's user avatar
4 votes
0 answers
255 views

This didn't used to happen, but now when I try to execute a shell script in my path by name, it just hangs. The script: ~/bin/foo: #!/bin/sh echo this is foo My PATH: /usr/bin:/bin What happens ...
Edward Falk's user avatar
  • 1,113
3 votes
0 answers
906 views

I'm trying to enable/disable time announcement feature that's present in Dock & Menu Bar > Clock > Announce the time with a shell script. When I read the plist file, I can see that it's set ...
abdusco's user avatar
  • 131
3 votes
0 answers
729 views

This question has what seems like a duplicate here, but I have an update. The answer to that question -- how to add a shell to Automator -- is to modify Shells.plist. Specifically: The list of these ...
Raydot's user avatar
  • 150
3 votes
0 answers
196 views

I'm using the open command to automate (via bash) opening a dmg which has a EULA attached to it. When I run open my_app_distribution.dmg I get a screen that looks like this: The open commands uses ...
whowhatwhere's user avatar
3 votes
0 answers
83 views

I want to "augment" Spotlight to do things like: If an integer (^\d+$), open a site, example.com/$0. If a UUID (^\d{8}-\d{4}-\d{4}-\d{4}-\d{12}$), open another site. If a string beginning with "user:" ...
Andrew Cheong's user avatar
3 votes
0 answers
308 views

I know that there are apps that can do this, so I figure it must be possible: I'd like to compile a list of every OpenMeta tag that I've used on my Mac (OS X 10.8.3). But here's the rub: I'd ideally ...
Daniel's user avatar
  • 131
3 votes
2 answers
3k views

Im trying to run tell application "X" to activate on an application that is running in fullscreen, but its not working. Any ideas on how I can work around this and give focus to a running app in ...
defmc's user avatar
  • 81
2 votes
0 answers
188 views

I made an Automator workflow that essentially runs a shell script to optimize images. I intend to use it as a Finder.app extension, by selecting images and running the workflow as a "quick action&...
Robin Métral's user avatar
2 votes
2 answers
764 views

There is a file type called "netCDF". My goal is to be able to double click on a netCDF file on Finder and see the text output from a CLI command to which the filename is given. Specifics: ...
Ryo's user avatar
  • 161
2 votes
0 answers
555 views

Looking for a script, macro, automation script, TIY solution that will allow me to hover my mouse over the menu bar scroll my mouse wheel up and down which in turn will switch between my left and ...
Yuri Gurin's user avatar
2 votes
0 answers
278 views

I'm in the situation where I would like to run a script only once per day when I open my MacBook. I guess I could have the script note the date it was last run, and have it reject when run on the ...
s1gtrap's user avatar
  • 21
2 votes
0 answers
126 views

I am trying to make a script that will automatically copy any files in the home directory with the extension .txt. What commands should I use in Terminal to search for and copy any txt files to a ...
Remy de Saint Phalle's user avatar

15 30 50 per page
1
2 3 4 5
9