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

learn more… | top users | synonyms (2)

0
votes
0answers
36 views

automator script to import last image in iphone to the mac's desktop and delete it from the iphone

I need a way to easily perform the following: import the last image saved on the camera roll on the iphone (it will always be the same iphone, can be hardcoded on the script) into the desktop ...
0
votes
0answers
26 views

How can I share subroutines between different applescript services

I use applescript to make a bunch of services for advanced hotkeys, like activate Finder, open Go to Folder…, and paste clipboard. There are plenty of usable subroutines available for applescript, ...
0
votes
2answers
87 views

Quick Look a URL via a script (Applescript, Automator, Shell…)?

Lion added the ability to Quick Look a URL in an application (like Mail.app). I would like to use that functionality from a script. Is that possible?
1
vote
1answer
65 views

Adding content via Siri to text files in Dropbox?

Recently, I decided to move a series of lists I keep in the Notes app (Groceries, Shopping, Movies to Watch, Local Bands we follow, Local Restaurants we like, etc.) to a Dropbox folder that I share ...
0
votes
1answer
68 views

Change the current iTunes song's rating after it finishes playing?

I use smart playlists in iTunes. For example: Play only songs rated 4 stars or higher with comments containing "mellow" (I use comments as tags, more or less, so that would be a mellow best-of ...
0
votes
1answer
89 views

How to get a list of application windows only from the current desktop with applescript?

Need to do something like the next tell application "Safari" activate set AllWindows to every window set WinCount to number of items in AllWindows repeat with i from 1 to WinCount ...
0
votes
0answers
28 views

Numbers 3.1: Maintain Link to CSV

Is there a mechanism to maintain a link between a CSV that may change and a Numbers file? I would like to maintain a Numbers file that uses table data from a CSV whose contents will be updated every ...
0
votes
2answers
630 views

Compress files with the output name same as Parent Folder with Automator

I've been searching the internet for a solution to this. I would like to create an Automator workflow that will zip the selected files, name the zip the name of the Parent directory and save that zip ...
9
votes
4answers
15k views

How do I open Google Chrome in Incognito mode by default

Is there any way (using apple script or by using settings on chrome) to open Google Chrome in incognito mode.
0
votes
2answers
38 views

Automate Receipt Filing from Emil

I currently have a workflow setup that when I get a paper receipt I highlight the company name and price in green then scan with my ScanSnap which it then OCR's. Then using Hazel I automate the ...
1
vote
0answers
41 views

Get posix path of .webloc in applescript droplet

If a .webloc is dropped onto the following script, the dialog won't be displayed; instead the url of the webloc is opened in the default browser. on open dropped_webloc display dialog "hey" end ...
4
votes
1answer
110 views

osascript to set secondary desktop background?

I have been using this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd> <plist ...
1
vote
1answer
86 views

Is it possible to create shortcuts for VLC using Automator?

I see here that Automator can be used to create commands that then can be triggered globally. I have no idea how to use Automator but see that it has some options for involving applications... Can a ...
1
vote
1answer
50 views

How can I convert a text selection to upper case in Apple Mail with a keyboard shortcut

Apple Mail version Version 6.6 (1510) OS 10.8.5 Is there a keyboard shortcut for converting the case for a text selection in the message editor? I know I can right-click and access this from the ...
1
vote
2answers
656 views

What is the Mac equivalent of Windows “start” command?

I'm creating a script that runs several other scripts. I need them to all start up in their own process (read window) so I can review the output of each, but I also need them to run in parallel, so ...
0
votes
1answer
123 views

How Can I Copy files to a Mounted Drive using AppleScript?

In what way can I copy home folders (Documents, Pictures, Movies, etc...) to a mounted drive without using the POSIX function in AppleScript?
1
vote
1answer
226 views

Apple script to lock computer using knock

There is a great app called knock which lets you unlock your mac by tapping on your phone twice while in proximity. http://www.knocktounlock.com Unfortunately in order for the app on your phone to ...
1
vote
2answers
76 views

Mail Script Help

I forward a lot of emails to Evernote and Nozbe (similar to OmniFocus) as I work to get my inbox to zero. When I am on my iPhone, I move emails to folders (Evernote, Nozbe, or Archives) depending on ...
5
votes
4answers
1k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
2
votes
1answer
44 views

String of variable has a space - how do I escape spaces?

I'm working on an applescript that pulls old Time Machine backups and places them into a new folder. But if the old computer name has a space in it, that causes an issue in the do shell script ...
0
votes
0answers
24 views

How to schedule Skype launch with AppleScript only on weekdays?

I need to launch Skype only on work days using AppleScript. How could I do this?
3
votes
2answers
107 views

Unaccent Special characters and bulk-rename

Background I have a workflow that collects documents from various sources, converts them to PDF, OCRs them, compresses them, extracts their contents and annotations, uploads the files to a server and ...
0
votes
0answers
20 views

Error when duplicating to shared drive using AppleScript

I'm trying to get duplicate home folders (desktop, movies, music, home, etc..) to a shared server. I was finally able to get the drive mounted using a concatenation of string and variables. But now ...
0
votes
0answers
26 views

How to get Mail.app raw message in the Automator ? (version 2)

I tried this script and it work great. Thanks But my problem is that the text I receive has = character at the end of each line, resulting in some url to be truncated/separated by this = sign. Is ...
0
votes
1answer
47 views

How to get Mail.app raw message in the Automator?

This is an cross-post, because i'm not sure where it really belonging. It is programming question, but apple specific question too. Here is the stackoverflow link: ...
2
votes
1answer
33 views

list box in applescript?

I'm trying to have users pick a department from a list box. And then that choice is stored in a variable as string. How can I do this? I have code written like this: set deptList to {"dept1", ...
1
vote
1answer
400 views

Mail.app AppleScript to process POP3 mails stopped working in Lion

I have a Mail.app rule script that worked fine in Mac OS X Snow Leopard. It is simply a script that allows for AND/OR boolean logic combined together to trigger one (rarely two) of the following ...
0
votes
1answer
59 views

String and Variable concatenation not working in Applescript

I'm trying to concatenate at variable within a path name string to make this script more efficient. This is the code I have so far. But I can't seem to find the right syntax needed in order to set the ...
1
vote
2answers
56 views

Play a sound when another application outputs to console

I currently have a program that I can't get the source-code to so I'm trying to find another way to do what I need. I was thinking of having an applescript just constantly listening to console and ...
3
votes
4answers
215 views

AppleScript: Press Enter Every X minutes If Terminal is Open and Application Has Been Idle for X Minutes

I am new to AppleScript and am attempting to use it. If I am using Terminal and if I have not pressed a key for x minutes I want my Mac to press the return key. It is to repeat this process every y ...
0
votes
1answer
23 views

AppleScript or Automator workflow to clean orphaned files on Kindle

I'm wondering if there's a way to clean orphaned files from a Kindle using AppleScript or Automator. It would basically look for any .sdr folder that doesn't have a matching .mobi or .azw and then ...
1
vote
2answers
493 views

Automator or AppleScript Rename Workflow

Is it possible to automate the following action: Example Folder name: "TEST" the name of the file inside the folder is: "Evelyn.jpg". How do I rename the folder using the name of the file inside of ...
0
votes
1answer
134 views

Apple Script Calendar permissions with a locked screen

at my work machine I've written an AppleScript that writes an reminder email for our group meeting. It is triggered by an event in Calender through Open Application at time of event and then ...
1
vote
2answers
345 views

Have Automator parse down folders and list all filenames without their extension

Automator newbee question here. I've searched around and just can't find what I need (nor fully grasp how things work :-( ). I would like to have Automator parse thru a given folder, which is ...
1
vote
1answer
111 views

AppleScript working until placed in cron; causing Chrome to go unresponsive

Good afternoon. Question: I have a simple apple script telling Google Chrome to open, go to a URL, and enter presentation mode... tell application "Google Chrome" activate make new window ...
0
votes
0answers
153 views

AppleScript shows “Document could not be opened. You don’t have permission.” but file can be opened?

I am getting a "The document [filename] could not be opened. You don't have permission" when attempting to access several files in an AppleScript. However, I can open these files manually without ...
0
votes
1answer
126 views

Applescript: Comparing variable to string is failing

I have an applescript that gets a list of items and then iterates over them: tell application "GeekTool Helper" set names to name of geeklets repeat with currentName in names if ...
0
votes
0answers
22 views

What scripting framework could work with google translate for a non-programmer?

So I want to create a small workflow that I can integrate into my OS that does this: Translate selected sentence with google translate (fixed languages) and make it automatically get pasted where I ...
2
votes
0answers
35 views

Run rake using Automator

I have install ruby using RVM. Next I create workflow in Automator, which detects new files in folder and then copies them to another dir. The next thing I want - to switch to those folder and run few ...
1
vote
1answer
37 views

How do I tell AppleScript to read the contents of the “Network” Finder window?

I'd like to be able to get the contents of Finder's "Network" folder (Menubar-->Go-->Network). The folder contents here is different than /Network or /net. The overall goal is to grep the names in ...
0
votes
1answer
67 views

Simulate shift-tab with Automator/AppleScript?

OSX 10.9.1, Late 2013 MBPr I am trying to make a Automator workflow to connect to another machine on my network. How can I do this with Automator? I have it all set up up to the point where I have to ...
0
votes
3answers
228 views

Applescript - Unable to find resource when inside application

I have a regular Applescript application bundle that executes an applescript file when it's run. I'm trying to run a shell file that is located at "/Contents/Resources/Data/df.sh", however with the ...
0
votes
0answers
143 views

Applescript Display notification with Trigger

I have an applescript written to display a notification in the notification centre when I get a new email in outlook for mac. i.e. display notification mycontent with title mysubject subtitle ...
1
vote
1answer
66 views

Automator quarantine Gatekeeper workaround?

I am using my Developer certificate to sign Automator Apps via the Export dialogue, however when distributing these apps (outside the Mac App store) via email, Gatekeeper still flags my apps as a from ...
2
votes
1answer
50 views

Change keyboard whenever iTerm is selected

Using either Applescript or Automator is it possible to switch the software keyboard(Input Source) to a certain keyboard(input source) whenever iTerm becomes foreground? Scenario is as follows I ...
0
votes
1answer
42 views

Mail rules with Script Warning message

I am getting so fed up with this: It is too real not to make the mistake in a moment when I am not fully on alert (and to be hones that stresses me out), and I want to use my powerful Mac to ...
0
votes
1answer
39 views

How to script a logout while screen is locked?

I want to log out a user via a shell script, after a delay. However, there's a few other issues: User does not have admin and/or root. Logout must complete even if screen is locked. Currently, I'm ...
1
vote
1answer
65 views

Automator get first 3 letters of parent folder

How do i get the first 3 letters of the parent folder im creating a folder in with automator im designing a Automator service to create a project folder in the folder of a client and I want to append ...
0
votes
0answers
14 views

How do I Install the xcode command line tools without the confirmation and license prompt? [duplicate]

I ended up answering this myself but I figured I'd throw it up here to document it. xcode-select --install asks if you are sure you want to install the script, then it prompts you to accept a license ...
1
vote
0answers
66 views

Third party apps can't call applescript that otherwise work in 10.9

I am invoking my apple script from third party executable(C executable). Here is the applescript: on run argv do shell script ("open -n /Applications/Test.app/ --args " & "'" & item 1 ...