applescript Questions
10
Solved
I'm trying to figure out how to get the current space # from mission control. Source would be helpful, but more helpful would be info on how to figure this out myself. I've written a few applescrip...
Trapan asked 20/7, 2011 at 21:17
16
Solved
I've tried searching for this, and have seen others with similar problems but don't seem to have found an answer anywhere....
I have an AppleScript that I am trying to run over ssh so that I can r...
Nancee asked 13/11, 2013 at 15:10
7
Solved
My code looks like this
tell application "Firefox"
open location "http://rubyquicktips.tumblr.com/"
end tell
But if I have Firefox open, the link will open in a new tab. But I...
Duchess asked 5/9, 2010 at 10:36
4
Solved
I can open a Terminal tab using the following AppleScript:
tell application "Terminal"
set myTab to do script "exec sleep 1"
get myTab
end tell
This returns a string like: tab 1 of window id 3...
Aile asked 26/4, 2010 at 10:26
7
I'm looking for a way to dump (export) the contents of an OS X keychain into a file that I can easily process elsewhere, such as tab-delimited plaintext or something of the sort.
The Keychain Acce...
Dormitory asked 4/4, 2009 at 13:37
7
Solved
I made an app with AppleScript called FRIDAY. When I tell it to 'open chrome', it opens google chrome, this is working on Script Editor and out side of script editor. I can also tell it to 'open a ...
Heptamerous asked 3/3, 2019 at 20:12
5
Solved
I'm trying to write a plugin for emacs that displays a notification using OS X's native notification display.
I've run into terminal-notifier which works, but it's a dependency that doesn't work ...
Krems asked 18/2, 2018 at 20:20
2
Solved
I'm trying to write a script that splits the current + all next tabs into a new window — which would be super useful for organization.
It is perfectly possible to get the URLs of the current and a...
Cence asked 6/1, 2019 at 21:27
4
Solved
This is probably a total newbie question but here it is. I am making a pure applescript application. It activates another app and then types. The problem is that when it activates the app, it doesn...
Outturn asked 19/2, 2013 at 0:38
2
Solved
One line summary - I'm looking for a way to get AppleScript itself to reveal the name it expects a specific piece of window content (UI element) to be referred to as in a "tell" statement.
How do ...
Microwatt asked 14/2, 2017 at 16:19
2
Solved
I have the following, not working. It opens up a new tab in Terminal but the variable $DomainName is not passed in?
DomainName="example.com"
osascript -e 'tell application "Terminal&...
Roentgenology asked 5/5, 2021 at 18:0
6
I'm trying to send the spacebar key to an application without activating it first. The following code almost does what I want but it brings the application to the foreground first.
tell applicatio...
Hamper asked 14/2, 2011 at 19:23
2
Solved
I'm not looking for too much help today just a simple command, I already have the bare bones to what I need.
So Really simple question I am writing an AppleScript that sets my wallpaper based on th...
Tearle asked 28/9, 2014 at 11:50
3
I am trying to recursively remove all the tags (one of the new features of OS X 10.9) from all the contents of a folder. As there are many files in the folder (and folders which contain further fil...
Franni asked 5/11, 2013 at 7:51
2
Solved
I'm trying to return the information of the current iTunes Track, which is playing on my computer.
I can get single informations like this:
tell application "iTunes"
get name of current track
end...
Petitioner asked 16/1, 2016 at 14:50
6
Solved
I was just wondering how someone would go about finding all the applications that are installed on Mac OS X 10.5 using preferably applescript and output all their application names to a text file.
...
Heck asked 9/8, 2010 at 21:21
2
Solved
I'm trying to make an applescript that let's me change the desktop picture to a random picture in a folder on my hard drive
tell application "Finder"
set desktopPictures to folder "Path:To:Deskt...
Zurkow asked 9/9, 2013 at 19:18
3
Solved
I've got a shell script that I call that uses osascript, and that osascript calls a shell script and passes in a variable that I've set in the original shell script. I don't know how to pass that v...
Nonmoral asked 21/6, 2013 at 19:19
4
Solved
I have some AppleScript code that I'm executing with osascript. This is part of a larger Perl program. I'd like to be able to print to stdout from the AppleScript, then have the Perl script process...
Ciapas asked 7/1, 2012 at 2:32
3
I need to get a count of all windows per application. Every way I've tried to do this, I only get a count of windows that are assigned to the current (Mission Control) Desktop. (I'm currently runni...
Whichsoever asked 12/12, 2013 at 21:26
8
In OS X 10.8 I had a neat little AppleScript that I used to toggle Bluetooth quickly without using the mouse.
I updated to 10.9 which added several UI changes to System Preferences. Among other th...
Hustle asked 3/11, 2013 at 11:29
3
Solved
This is intended as an extension of the original question, The number of the current paragraph? How can I get it?, which does a nice job answering the question for iWork Pages. http://macscripter.n...
Sendal asked 16/5, 2013 at 20:19
3
Solved
I'm making a simple menubar app to do some actions such as toggling dark mode in Mojave
Writing an AppleScript for it is fine and when it works 100% when directly running the script. In order to i...
Neigh asked 2/10, 2018 at 2:57
1
Solved
Update: cloned to here:
https://apple.stackexchange.com/q/460841/209336
I'd like to have a bash script along the lines of this:
# set terminal window profile to profile2
sleep 300
# set terminal w...
Bragg asked 9/6, 2023 at 16:32
4
I'm curious if AppleScript can access each specific tab in a browser and execute some javascript in them.
Anyone have ideas?
Electrotherapeutics asked 27/2, 2011 at 20:13
1 Next >
© 2022 - 2025 — McMap. All rights reserved.