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

learn more… | top users | synonyms (2)

5
votes
0answers
109 views

AppleScript to make the preview image become the master in Aperture library?

Recently I accidently deleted the folder that contained most of my Aperture library (I didn't think they were refenced, I assumed they were all in my library file, but unfortunately this was not true) ...
4
votes
0answers
223 views

Printer Deploy with and custom preset profiles to Mac OS X workstations

How would I go about deploying a network printer (Sharp MX-2600N) to Mac OS X machines that would include a custom printer preset profile (Embedded Printer User Authentication Code)? Ideal Method of ...
2
votes
0answers
14 views

How to maintain focus on app window with AppleScript

I am trying to launch my scanner application using AppleScript. I have it launching the Printer app and I know how to send the keystroke command but when the Printer window opens it does not have ...
2
votes
0answers
117 views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
2
votes
0answers
23 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 ...
2
votes
0answers
64 views

Moving full screen apps between monitors shortcut

Does anyone know if it is possible to move a full screen app to another monitor using a shortcut? Or if there is no existing shortcut would it be possible with Applescript? BetterTouchTool has "Move ...
2
votes
0answers
62 views

Log software usage time on Mac OS 9 (Oct. 1999)

I'm needing to log the time a user spends inside of an application in Mac OS 9. I created a simple bash script "launcher" to do this, but then discovered OS 9 doesn't have bash installed. Here is the ...
2
votes
0answers
102 views

Detecting typing in Messeges app using applescript?

In the new Messages app, which replaced iChat, you can see when another person is typing: And i've been scripting around the messages app and was wondering if there was any way to detect when the ...
2
votes
0answers
43 views

Sort Stickies by desktop

I have OS X Lion 10.7.5 with four desktops and also have 4 groups of stickies (one group per desktop). Every time that I have to reopen the Stickies app, they are unsorted (all stickies open on the ...
2
votes
0answers
189 views

AppleScript to find old mail messages is slow in ScriptEditor

So I have an AppleScript that iterates over all the messages in various mailboxes and finds messages which meet various criteria and moves them to Deleted Items. The mailboxes in question are ...
2
votes
0answers
50 views

AppleScript deployment conventions?

I haven't seen a package-management system for AppleScripts, but it seems like the foundations for one are present. Given: Scripts (and folder) located in the ~/Library/Scripts/Applications folder ...
2
votes
0answers
66 views

Have OS X auto-search for WiFi

My school has installed PowerCloud, which does not officially support OS X. It works sometimes, sometimes it doesn't. I've tried to narrow it down but it's impossible. I was wondering if there is a ...
2
votes
0answers
623 views

With Lion, Problems Accessing Shared NTFS Folders with SMB://

We are testing a local login script that we created for our Macintosh users on Lion. It has worked fine on all OS X versions prior to 10.7. Listed below is the script that we are using. When we run ...
1
vote
0answers
22 views

Applescript for Outlook 2011 that moves all messages from a specific folder that match a source account to a different folder

As the Title states "Help with an Applescript for Outlook 2011 that moves all messages from a specific folder that match a source account to a different folder." So, I have a "rule" that moves all ...
1
vote
0answers
45 views

How can I permanently force Xerox secure printing?

My clients are printing direct to a network printer (no print server). Xerox have confirmed that the Secure Print Only option is only available in Windows, so I am looking at editing .plists, ...
1
vote
0answers
23 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 ...
1
vote
0answers
32 views

Applescript click action working, but generating a System Events error

I'm working with an AppleScript that turns off (but does not quit) Hazel. The script works fine but generates a syntax error. Here's the part of the code causing the error: tell application "System ...
1
vote
0answers
52 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 ...
1
vote
0answers
24 views

Automatically reduce MacBook brightness on connecting to external display?

I would like my macbook to reduce its screen brightness to zero when I connect it to an external display. I know there's no such setting, but how would I go about writing a script that would do that? ...
1
vote
0answers
53 views

Encrypting a PDF during Hazel processing

I've created an Automator Workflow which can take the selected Finder item (being a PDF) and encrypt it using the Apple-provided "Encrypt PDF Documents" action. The problem with this action is it ...
1
vote
0answers
160 views

AppleScript for moving mail messages to OmniFocus is creating duplicates in OmniFocus

I'm trying to customize this script to import all flagged mail messages in Mail.app to Omnifocus, then unflag and archive the message. It works, but it creates many duplicates in the Omnifocus inbox ...
1
vote
0answers
56 views

How to prevent AppleScript confirmation from appearing when using Quicksilver trigger?

When I launch this simple AppleScript from Finder or by using the standard Quicksilver panel selection, it runs without confirmation. tell application "Flux" if it is running then quit ...
1
vote
0answers
131 views

AppleScript : do a mouse scroll on a Finder window

How can I do a mouse scroll on a Finder window in AppleScript ? I know there is keystroke for the keyboard, click for a mouse click, but is there something for the mouse wheel ?
1
vote
0answers
117 views

Disable copy/paste for an OS X application

I would like to disable copy/paste for an app to protect sensitive information displayed in it. I don't have the app source code. I'm already aware of this general solution: ...
1
vote
0answers
102 views

AppleScript to file attachments

I'm trying to file email attachments into a specific folder. The path is received in the subject field of the email. I'm close but not quite there. I am getting the script to run. using terms from ...
1
vote
0answers
104 views

Script to make the x red button kill the app

Quick background: new mac, long time windows user; not scared by linux and scripts. I am currently using RedQuits to make the x red button quit de app, not just close the window. It is a great ...
1
vote
0answers
32 views

Can Homebrew be used to install AppleScript bundles?

Can Homebrew be used to install AppleScript bundles? If so, what sorts of conventions would the project need to follow? Would it need to include a make.scpt file compile the .applescript files? I'm ...
1
vote
0answers
300 views

Applescript to forward email with attachment, and change subject

I'm trying to create an applescript that will take messages that match a certain filter YYYY), and forward them to a specific notebook in Evernote (XXXX), with the attachment intact. So far, I've ...
1
vote
0answers
29 views

AppleScript bundle: expose other interactive scripts?

Assuming that I've created script bundle (.scptd), is there a way to expose (for lack of a better term) other interactive scripts? Alternate scripts might preform configuration tasks or secondary ...
1
vote
0answers
46 views

Is there another way apart from screencapture to take a screenshot of a background window?

I'd like to take a screenshot of a background window given its title. I know this can be made with screencapture -l idwindow output but unluckily I can't use this method because I'm on a 10.5.8 ...
1
vote
0answers
222 views

Progress Indicator for AppleScript

Okay, so I have an AppleScript that is really just a wrapper for a simple shell script, so I could turn it into a double-click to run application, droplet and URI handler on OS X. Anyway, this works ...
1
vote
0answers
17 views

Possible to Detect All the Podcasts in iTunes That Are Marked to Not Allow Auto Delete?

I'd like to, for my own nefarious reasons, be able to see which files iTunes currently thinks it can't auto delete. Applescript or summat would be fine, although a smart playlist would be even ...
1
vote
0answers
49 views

Apple script that closes Apple Remote Desktop

First let me say that I have ZERO experience in Apple Scripting. That said, I need to build a Apple Script or whatever is more efficient for that case, that is going to close Apple Remote Desktop ...
1
vote
0answers
72 views

How does one execute scripts within script bundles?

I am trying to make my completely enormous script more comprehensible by splitting it into a main script with bundled scripts to run when called, but I don't seem to understand how to run a bundled ...
1
vote
0answers
212 views

How to create an apple script that forwards a flagged email

I want to create an apple script that will forward a flagged email to x@mail.asana.com I have tried this script: on run tell application "Mail" repeat with _acct in imap accounts ...
1
vote
0answers
36 views

Ruby and osx, clipboard status detection

My question: is it possible to detect when clipboard was pasted into other app ? With use of RubyMotion, Macruby, or Apple Scripts maybe ?
1
vote
0answers
129 views

Can I find and replace Core Text/Cocoa text strings in any application?

My scenario: I use an app called Antetype for UI design. Antetype uses OS X-native technologies for text rendering (it uses the system-standard text palette). Antetype does not have a find and ...
1
vote
0answers
432 views

Can a new mail be sent using AppleScript + Outlook + IMAP?

I'm trying to use apple script to automate creation of a new outlook mail message. The below code will work when I have my email account sent up as pop3 but I need it to work with an IMAP account. ...
1
vote
0answers
111 views

Touching files in correct order

This code touches files in alphabetical order. I need to touch files in order it is in list_of_files, so first it touches file2, then file3, then file1). Is there any other way to do this than to ...
1
vote
0answers
74 views

Why would a Folder script stop working in 10.8.2? I have been using this script for several years

property disk : "Webserver:RAID:active_jobs" -- name of mounted disk where all work resides property folderactive : "Active" -- name of Folder were active jobs folders are held property destination : ...
1
vote
0answers
137 views

How do I tell Finder to read the network folder contents?

I use the following AppleScript script to automatically connect a remote drive when my VPN connection is established using Viscosity: do shell script "sleep 5" tell application "Finder" mount ...
1
vote
0answers
238 views

Applescript vs. Spaces in Lion (10.7)

In Snow Leopard (10.6), I had an applescript that toggled iTunes between "maximised on Space 2" and "mini-player on all spaces": set app_identifier to do shell script "echo 'com.apple.iTunes' | ...
1
vote
0answers
104 views

Sending a “show next” command to multiple computers

I am trying to sync the advancement of Keynote slides on two matching computers. I am running into a delay on the second machine. ( I have switched the tell blocks and the second machine is always ...
1
vote
0answers
252 views

Populate Pages Chart Data via Applescript

Right now I'm copy and pasting between Excel and specified places in a Pages document. For instance, I'll copy cell B7 and find "B7_Value" in Pages and replace it with the copied value. Here's an ...
0
votes
0answers
14 views

How to click on an exact element in chrome using apple script?

I know it's website specific, but i'm just having a hard time understanding exactly how the do Javascript function works. For example, say I have this site to vote on and i wanted to run an apple ...
0
votes
0answers
16 views

Authomatically press a keystroke with Automator/Applescript when a specific application is active

Background to problem: Spotify rolled out a new update, with new dark, high contrast color scheme, which is very tiring for eyes and difficult to read for people with various health issues. Inverting ...
0
votes
0answers
11 views

Get iTerm session by tty name

I want to run a command within an iTerm2 session like this: tell application "iTerm" tell session id "/dev/ttys020" exec command "ls" end end But I get the following error (with and without ...
0
votes
0answers
13 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
11 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
0answers
19 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 ...