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

learn more… | top users | synonyms (3)

-1
votes
1answer
40 views

Terminal command “ls” in AppleScript list

How can I create a list in AppleScript that shows the results of a terminal command. For example ls /Applications/ Every application should be shown in the list, so that I can choose an item from the ...
0
votes
0answers
12 views

Generate Document from Text AppleScript?

I have a series of documentation text files on a Mac that I want to turn into a PDF. But I want to automate the process. Preferably the document would have a table of contents. Is there anyway ...
0
votes
0answers
14 views

How to periodically show alert message *in foreground*?

I want to have an alert / dialog box to fire up periodically in foreground. I tried a combination of AppleScript and launchd and managed to have the script (actually converted to a app) fired up ...
0
votes
0answers
7 views

Applescript to hide print queue

Running a Processing sketch which saves .txt files to a folder. Have a folder action attached that prints new files in this folder to a thermal receipt printer. However, I had to update to Yosemite, ...
0
votes
0answers
38 views

<Applescript> how to change/set the name of an existing recipient in outlook 2011

In Outlook 2011, I replied to a email using applescript. The recipient address exists. Now I would like to set a name for this recipient. Is there a way to set or change a name for an existing ...
1
vote
1answer
30 views

Set Bash Variable as Icon in osascript -e Display Dialog with icon

I have a bash script that utilizes some osascript -e code for a dialog. I want to use a custom icon in that dialog. However, I don't understand how to code it so it's completely portable so as to make ...
2
votes
2answers
92 views

Wanting help creating an applescript that is run when the contents of a folder changes

I would greatly appreciate some assistance with the following. My scenario: I have a Mac app that generates RTF files. I have an Android app that deals with MultiMarkdown/Markdown files. The Mac ...
0
votes
0answers
16 views

Applescript to fill out Server Password Prompt

I'm trying to figure out if it's possible (via AppleScript) to fill out a server authentication dialog box asking for username and password (using Google Chrome). This is the dialog box I see when ...
-5
votes
0answers
16 views

Create applescript to do next song in safari tab

don't know applescript language (and it will be nonsense to learn it just to do this single thing). What I want to do is press the keys that are in the macbook keyboard (play/pause, next, back) to ...
0
votes
1answer
28 views

Automator - How to know what I can do with Automator in each app

I'm new to AppleScript and Automator, I've reached to stop and play next and previous track in Spotify, here's what I use inside the AppleScript: tell application "Spotify" to playpause for ...
1
vote
3answers
39 views

Applescript Move current file to Folder

I want to create a script that takes the current file selection and moves it to an already existing folder. I will then duplicate this code for 9 other folders and assign them all keyboard shortcuts. ...
0
votes
1answer
23 views

Applescript or Automator service that automatically trusts certificates

I would like to know, if there is a way to make an Automator service or an Applescript that automatically trusts a root certificate. If possible without a prompt for password or Admin privileges. ...
1
vote
1answer
57 views

Get MacBook to say Thank You when plugging in the power cord?

I would like to know how can to create an applescript which is executed when I connect the power cord to my MacBook. I would like it to say "Thank You"
0
votes
0answers
16 views

Adding a Folder into favorites sidebar with applescript

I am using Yosemite, and am having issues getting my applescript below to actually put a file into the favorite bar. I tested the file by typing "t" + Command + control, and it works, but when I run ...
0
votes
0answers
26 views

Reference parent of object specifier in AppleScript

This is my first attempt at AppleScript so I apologize if I don't explain myself very well. I am trying to have iTunes select an App form a list when an iPad is plugged to the computer. I need it to ...
0
votes
2answers
53 views

AppleScripting QuickTime Pro 7 to export .png files

How can I use AppleScript to save .png files from the start and end of .mp4 files with QuickTime? This is something I am doing a lot of and it would be good to automate it. I have some scripting ...
1
vote
1answer
26 views

Making a command key for an option that already exists

Introduction: Hello, my formatting may look weird but I'm hoping it will be more concise for you and easier to follow, I have ADHD so my writing sometimes goes from one thing to another without any ...
-2
votes
1answer
44 views

AppleScript to identify the current status of Network Connection?

What is the AppleScript to identify the current status of MacBook Pro's network connection (Yosemite 10.10.3) Connected via Iphone USB on/off (Hotspotting to Iphone) Connected via WIFI ON on/off ...
1
vote
1answer
46 views

How do I “say . . . using” in Javascript for Automation?

In Applescript, I can specify the voice the system uses to speak text as follows: say "Hello" using "Alex" In Javascript, I can do something similar: var ScriptEditor = Application("Script ...
0
votes
0answers
26 views

How to have Automator say click “Thanks” to App's Dialog Box

Using Automator, how to click "Thanks" on the apps Dialog Box? The app runs a process, and when the process finishes returns a series of Dialog Boxes with the result. Each Dialog Box, has 1 button ...
1
vote
0answers
36 views

How to: Automator, launch an app, as if I dragged n dropped file on App's dock icon?

Using automator, I know how to "Launch an App". I would like to know how to "Launch an App in a specific way". The app I want to launch, acts differently depending how its launched. If one: clicks ...
0
votes
0answers
36 views

AppleScript click on website link

I need an AppleScript to select a specific text field of an area, paste a text and click enter. I have inspected the text (research) field. Here is the result: <input placeholder=​"Search Value" ...
0
votes
1answer
106 views

Is there a quicker way to pause Photos uploading to iCloud?

Photos.app on Yosemite takes forever to upload its library to iCloud, and can slow the WiFi network to a crawl while it does so. I know that I can pause it in the app's Preferences, but this is ...
0
votes
0answers
10 views

Further Question from “Automating Quicktime Image Sequence creation in Mountain Lion”

This is related to the question asked in: Automating Quicktime Image Sequence creation in Mountain Lion I was wondering if there was a way of adapting this script to resize the Image Sequence to ...
0
votes
1answer
47 views

Script/Workflow: Select item, print, save as PDF, name sequentially, down arrow to next item

Yet again I have a task to do that would be great to automate. Yet after searching for examples that are even close I am nowhere. Here is what I am trying to do: First I Perform a search by specific ...
1
vote
1answer
155 views

Adding Bounce Message back to Mail in Yosemite

Does anyone have an updated version of this workflow for adding a Bounce Message feature to Apple Mail in OSX 10.10.3? Applescript: on run {input, parameters} tell application "Mail" ...
0
votes
1answer
29 views

Applescript for multiple find/replace using separate masterlist

I am trying to create a script to extract a list of data from column A on document 1, and then use columns A & B on document 2 as multiple find/replace data. Everything works in so far as ...
1
vote
1answer
60 views

AppleScript Quicktime Player to play audio file generates error

My Quicktime Player (Version 10.3 727.4) can play mp3 files without any problems, but when I use AppleScript I get an error message: The document “audio.mp3” could not be opened. The file may be ...
0
votes
1answer
27 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 ...
1
vote
1answer
29 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
31 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, ...
1
vote
2answers
62 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
19 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
2answers
46 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
58 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
36 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
56 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
226 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
55 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
19 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
21 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
50 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
83 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
28 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
27 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
52 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
40 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
51 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
149 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
29 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 ...