AppleScript is a proprietary programming language in Mac OS X to control and exchange data with applications.

learn more… | top users | synonyms (3)

0
votes
1answer
11 views

Filling the inputs of SecurityAgent if they exist?

I am trying to automate the export of my keychains (system and user), and while my script works if I remove the set values, it does not after adding them. The error I am receiving is System Events ...
0
votes
1answer
19 views

How to make a custom keybind that runs an applescript file?

No additional questions. I'm fine with installing an additional program.
0
votes
1answer
20 views

How to Change Scroll Speed Programmatically with Applescript or Shell Script

Is there a way, using either applescript or a shell script, to change the scroll speed? I don't even know where to begin to look for a mechanism for this. Oh, and no third-party applications either, ...
0
votes
0answers
27 views

Applescript (PDF to iTunes): How to extract and/or write metadata with special characters? Help please :-)

INTRODUCTION Hello there, Like always, I want to put in front that I'm not a script expert. I'm not even a basic coder. I just try to learn, little by little about coding when I have these ...
0
votes
0answers
7 views

Automator Workflow - Reply To Outlook Messages with Template Text

I have pulled together the following workflow in Automator because my Scripting knowledge is non existent: Problem It pastes the text in unformatted, losing all paragraphs, bold, underlined, ...
1
vote
1answer
22 views

Get nick name of current user

I want to get the nickname of the currently logged in OS X user via Apple Script. Currently can only retrieve the full name or the nickname of a contact, I wasn't able to combine the two scripts. ...
0
votes
1answer
25 views

How can I use Applescript or any other utility to send a daily text message to my bank?

I have searched and I find a lot of results for specific methods of sending an iMessage with Applescript, but they all seem to contain extraneous code for specific needs that I don't need. I'm ...
0
votes
0answers
5 views

FFMPEG via AUTOMATOR not working argument “drawtext timecode”

I am new to scripts and automation but I wrote a script to help me on my daily job of watermarking and burn in timecode on videos. I created an Automator drop on app to convert videos and watermark ...
0
votes
0answers
25 views

Setup and sync multiple Google Drives

I am trying to setup and sync multiple instances of Google Drive on OS X Mavericks. I have tried the two following instructions here, and here, but to no avail. Each time I try to run the new ...
3
votes
1answer
110 views

How can I avoid permission-related failures when importing in Photos.app via AppleScript?

The new Photos.app does not come with Automator support (although there are third-party actions available). It does, however, have some basic AppleScript support, including support for importing a ...
-2
votes
1answer
34 views

applescript to unlock mac works very slow

Hello i am using this script to unlock the mac tell me to activate\n tell application \"System Events\" to keystroke \"PASSWORD\"\n tell application \"System Events\" to keystroke return\n tell ...
1
vote
0answers
16 views

Tell last media player to skip song

I bought a new keyboard that, of course, works almost perfectly, minus the media buttons. Luckily it has open source drivers specifically for linux and mac, but unfortunately the media buttons ...
0
votes
0answers
10 views

How can I securely store passwords in xcode app?

I'm writing an app with Xcode using Applescript-ObjC. I'm wanting to put in some usernames and passwords to automatically check some remote servers. How can I put these login credentials in the app ...
0
votes
2answers
43 views

How to check if invisible items are visible?

How do I check in AppleScript, if invisible objects are visible? If visible, do: defaults write com.apple.finder AppleShowAllFiles 0 in invisible, do: defaults write com.apple.finder AppleShowAllFiles ...
1
vote
1answer
44 views

How to Use Cancel Button in Osascript to Stop Running Script

Here is my basic script: #!/bin/bash osascript -e 'tell application id "com.apple.systemevents"' -e 'display dialog "Do you want to continue?" & return & return & " Please wait..." ...
1
vote
0answers
18 views

How to detect if chrome (or any other app) is playing sound using bash/applescript

I am writing a script to turn off audio on my mac, but need to check if its coming from the browser or an app (say Spotify). Is there a way to detect which app is playing sound?
0
votes
0answers
17 views

Applescript and iTunes: enable shuffle by song or album and play?

The documentation for shuffle/shufflable in the iTunes Applescript dictionary is really confusing, at least for me. As I read it shuffle seems to be a property of a playlist (not a state of the ...
2
votes
2answers
32 views

if application “Safari” visible is false then (AppleScript)

I would like to check if Safari is visible, my AppleScript code was this, but it doesn't work ... How can I check the visible with AppleScript? if application "Safari" visible is false then tell ...
0
votes
1answer
29 views

Use AppleScript to play an iTunes Radio station vs. an iTunes Internet Radio station?

Looking for hints or a code snippet that will show me how to use AppleScript to play an iTunes Radio Station (with cover art, add to iTunes wish list, play more like) vs. playing an iTunes Internet ...
0
votes
1answer
22 views

Using Applescript to paste the current date into a range of Excel cells

I have a simple script written that successfully saves the current date in the format I need. I also have saved a destination range in the active sheet. I just need syntax to paste/insert it into that ...
2
votes
1answer
127 views

Applescript: Help to extract PDF “Author” metadata and set it in iTunes Author field

Using other applescript as template, I've been trying to modify this particular one to do the following task: Extract "Author" tag from a PDF file and write it automatically in the iTunes12 "Author" ...
0
votes
0answers
17 views

How do I a search with applescript cocoa that sets properties with actions

A little bit of context here, I have a text file which is compiled of all the computers and users of my network, its referenced so I can easily find and VNC into them. My regular applescript looks ...
0
votes
1answer
33 views

Using applescript to create spaces and launch apps

So the end goal of what I am looking to do is this: When I am at work I use an external monitor with my MBP. I have a consistent set of spaces and apps that I setup everyday. What I would like to ...
2
votes
1answer
59 views

How to replace all Finder files with a placeholder file for each

I have lots of files from a database which are to be copied to a new database, but the files for these are corrupt (They are zero-byte in size and contain no data). Rather than the new database ...
0
votes
0answers
20 views

AppleScript/Automator Add AutoCorrect Settings

I am making a AppleScript/automator script for April Fools that is going to change the AutoCorrect. I know that I can change the autocorrect settings by going to Settings > Text > '+' ...
0
votes
1answer
14 views

Launch Apple Script on App Focus

Is there a way to configure an Apple Script (or any script for that matter), to be run every time an application is focused? For example, if I am on Safari currently, and I tap on a QuickTime window, ...
3
votes
2answers
143 views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
1
vote
0answers
21 views

How can I programmatically read and write the texttone of a Contact in the OSX' Contacts app?

On the Contacts app (V9.0) of Mac OSX 10.10 Yosemite I want to read and write programatically the texttone property in some of my contacts. How can I do this with Applescript or another scripting ...
-1
votes
2answers
73 views

AppleScript for restarting to Bootcamp?

I have tried to use an AppleScript to reboot to Windows It's not going well though, as when I tried it the first time, a white screen appeared on startup and didn't go away. A hard reset rebooted to ...
0
votes
0answers
27 views

How to iterate through iCal events in Applescript

I am trying to iterate through the events in a calendar to copy them to another: tell application "iCal" set localEvents to events of calendar "localCalendar" set remoteEvents to events of ...
1
vote
0answers
12 views

How do I automate selecting files in a .jar file?

My .jar file has a number of buttons that, when clicked, prompts me to select a file to load. I need to find a way to get this file selection to be automated, and decided on applescript. ...
1
vote
0answers
34 views

Forcing application to go to selected window on startup

I run a multi-monitor set-up on a single "Desktop". All of my applications when opened run on the primary monitor, which is the smaller monitor. I would like to have some (e.g. browser, mail client) ...
0
votes
0answers
20 views

Automator script doesn't show up in services menu

I made an automator script to help me to assign LaTeX indexes to words in TexMaker. It would convert a highlighted word test to \index{test} test. This is the little script: on run {input, ...
1
vote
1answer
17 views

Problems with the command delete function in applescript

I have an applescript that I am using to clear out a huge folder. I can select all of the files but how can I indicate the "command delete" key while keeping all of the files selected? Basically after ...
2
votes
1answer
41 views

Droplet with a progress bar?

First of all, apologies for my ignorance on the subject. All of this ffmpeg and automation is new for me and sometimes I cannot see even evident things. I am learning command lines to encode videos ...
2
votes
1answer
32 views

Open application from terminal and remain linked to the process (like Linux) so when CTRL+C is sent to terminal the application closes too

I have an application (closed-source tool not developed by me) which requires another process to exist before executing properly. When I quit this application, I also want that custom process to be ...
1
vote
0answers
38 views

select a menu item of a window instead of a process using Applescript

I'm quite new to applescript (and a beginner programmer) and I've hit a dead end. I figured out how to access a menu item of a process but I do not know how to do it once I have multiple windows. ...
0
votes
1answer
32 views

Programmatically catch app opening / closing

Is it possible, via an AppleScript, a background service or daemon, or any other programmatic way, to catch the following events: a specific app (eg Aperture, Excel ...) being launched, an app being ...
1
vote
1answer
17 views

AppleScript Dialog gives error?

My AppleScript app on my computer gives a error. Here is the code: set file to display dialog "Open Script?" default answer "tests/helloworld.in" do shell script "cat " & file & " | python ...
0
votes
0answers
46 views

Mac Outlook 2011 - moving folders from On My Computer to Exchange Server

I've just noticed a very odd peculiarity about using Mac Outlook 2011 with an Exchange server. I am hoping to write a script that will allow me to highlight a folder On My Computer and move it onto ...
0
votes
1answer
12 views

My iPad unable to view subtitles

My iPad unable to open or view video online with subtitles. But when I open the same website with my lappy, the video and subtitles work well. There have something wrong with the website or my iPad?
0
votes
2answers
83 views

Automate Fn key switch when opening Excel

So Microsoft released a free preview of Office for Mac, and it is pretty sweet. One of my biggest problem when using Excel on a mac has always been that the most popular/frequent shortcut (F2 -> edit ...
1
vote
2answers
56 views

Simple 3 line applescript - Error -128

I have a scenario where I'd like 2 separate applescripts. The idea is super simple. 2 Applications, but only one runs at a time. Example: Close application 1, launch application 2 (and vise versa) ...
1
vote
1answer
46 views

IF statement doesn't work properly in osascript

I'm working on script which should do something if application is running or not Also there should be a timer of checking(60 seconds) The problem is that "if" statement which is checking "count" ...
2
votes
3answers
78 views

How can I automate pasting of password into SecurityAgent?

On OS X 10.8.x I had an Automator service set up to paste a password from clipboard into the password window that pops up for mounting an encrypted disk. I don't wish to store the password in my ...
-1
votes
1answer
12 views

Using variables in pathnames and pathname variable help plus finding username applescript?

So, I want to have my script to be able to find out the current user's username and store it in a variable (myUsername). Then, it will go to /Users/myUsername/Desktop/FV.app. How can I do this and ...
0
votes
0answers
34 views

Applescript to click green (zoom) button with Option down

Based on Applescript - the activate command makes application "half-active", I wrote the following Applescript which would allow me to click the green (zoom) button at the top-left corner of ...
1
vote
0answers
16 views

Help with Applescript to paste text into Word

I've just started using Apple Script and I was trying to make Word paste some text in an unformatted way. This is the code I am using: tell application "Microsoft Word" tell selection try set theClip ...
2
votes
2answers
31 views

How do I assign a keyboard shortcut to an AppleScript I wrote?

How do I assign a keyboard shortcut to an AppleScript? I found a script for automatically going back to the inbox in Office 2011.
0
votes
0answers
30 views

How to use Numbers to generate pdf on a web server and then email it out?

I have an issue. My client loved the report I generated using Numbers on Mavericks OS X. The bad news is that the data is being processed on a ubuntu machine running python and django. I want to ...