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
1answer
7 views

Set Alias for Terminal Window in Applescript

After opening multiple terminal windows and running commands in them, it becomes difficult to send another command to a specific terminal window. How can we set an alias for each terminal window so ...
1
vote
2answers
5 views

How to make certain keystoke in AppleScript?

I am trying to make a program that records a live stream for a certain amount of time and then saves it on my desktop. This is what I have so far. TWiT Live Recorder (30 sec version) tell ...
0
votes
0answers
7 views

Keynote export with AppleScript broken in 6.2

I have recently upgraded both osx (to 10.9.4) and Keynote (to 6.2) and found this script, used to export Keynote presentation to HTML, no longer working. The script is simple: #!/usr/bin/osascript on ...
0
votes
0answers
5 views

Applescript System Events Keystroke broken after 10.9.4

It seems like the recent Mavericks update has broken the keystroke command in applescript -- whenever my script reaches that point, it freezes. (I currently have ~20 zombie osascript processes...) ...
0
votes
1answer
13 views

Creating a script that will execute a program and if it exits without crashing, will run it again

I've already asked this question in the UNIx exchange but I was told to ask here also about AppleScripts if the standard shell does not work. I require a script that will open an application. Wait ...
0
votes
1answer
22 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
0
votes
0answers
15 views

Automator sequential renaming for one file at a time

I have found many tutorials on how to rename some files using a "batch-renaming" type of workflow, but I have a different issue. I'm moving files one at a time into a folder, not all at once, so the ...
1
vote
1answer
85 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 ...
0
votes
1answer
17 views

Applescript Command as Specified User to Delete All Files in a Particular Folder

I am looking at using the POSIX path to delete the contents of a particular folder on users computers but it must be performed as a particular user. I can deploy the script silently from my side ...
1
vote
1answer
24 views

How do I create a scheduled task that deletes files of a certain name everyday?

Our voicemail system sends our messages to us via email as mp3 files. When I download the file, it comes down as "message.mp3", but of course OSX will rename them "Message (x).mp3" when you have more ...
0
votes
1answer
20 views

How to locate UI Button for AppleScript using Accessibility Inspector

There are several articles here that address this question, but none offer the help to connect-the-dots. The attached screen shot shot shows Accessibility Inspector for the button in question, which ...
0
votes
1answer
703 views

copy calendar entries from one calendar to another via apple script throws error

i am trying to copy ical entries from one calendar to another using the following script: tell application "iCal" set localEvents to events of calendar "Privat" set remoteEvents to events of ...
0
votes
0answers
20 views

Tile Terminal Windows using Applescript

How can we use Applescript to tile multiple Terminal windows in the screen? Like in a arrangement of 3 cols by 2 rows. The following code simply overlaps all 6 windows. tell application "Terminal" ...
1
vote
1answer
37 views

How to Identify Safari Javascript Alert Dialog using AppleScript?

In a particularly 'pesky' website, a dialog box pops up to block (or cover) automated entry of the userid input box. I have used the following code attempting to get a reference & to close this ...
0
votes
1answer
694 views

Using automator and handbrake cli to convert videos automatically

I am trying to automate video conversion process using Automator and Handbrake CLI version. I am trying to implement the functionality that whenever a video is downloaded in my dropbox folder on my PC ...
0
votes
0answers
17 views

AppleScript - Auto Press Keys

Using the AppleScript editor, I want pressing the "6" key in Google Chrome to also press the keys "1", "2", "3", "4", and "5". What's the easiest way to do this? I expect that there are some similar ...
1
vote
1answer
78 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
1answer
86 views

Automated Deletion of Messages From OS X Mail

Okay, so I know this is a tricky issue as OS X's Mail seemingly lacks the ability to automatically delete or archive old messages, even though it has the necessary date-based rules to do so. As such, ...
0
votes
1answer
42 views

Banning domains temporarily from local access

I need to control myself. So far, I was using a Windows device for work, where I would simply reroute Facebook, news sites and similar to 127.0.0.1. In near future, I will have to use the same device ...
2
votes
1answer
23 views

How to automate changing the settings when you connect the mouse?

I want to change option in System Preferences "Scroll direction: natural" every time I plugin mouse to my MacBook. And switch back when mouse is disconnected. This should happen automatically. How ...
1
vote
0answers
27 views

Exponential Slowdown of Applescript

So I've been working on a simple AppleScript to try to help with managing my e-mail in OS X's Mail, and I have it seemingly working just fine with one major problem; the performance of the script is ...
1
vote
1answer
22 views

What's a way to run an automator/bash/applescript command right when a laptop starts charging and right when it stops being charged?

I'm trying to automate running a background application only when my laptop is charging to save battery. So it will launch when I plug the laptop in, and quit when I take it out.
2
votes
1answer
592 views

System-Preferences Applescript using osascript cannot select its window

This AppleScript (based on an answer in a MacWorld form) will tell me whether or not Screen Sharing is enabled: tell application "System Preferences" reveal pane "com.apple.preferences.sharing" ...
8
votes
2answers
167 views

How would I go about making a stand alone app on my dock to open a game using a terminal command?

I have a game that they never released for mac, and I installed the game using WINE, the install itself was flawless, but every time I want to play it, I'm forced to open Terminal and run cd ...
0
votes
1answer
46 views

AppleScript to save active Microsoft Word document IFF there is one

I use this with Keyboard Maestro to automatically save the front-most document in Microsoft Word whenever Word deactivates: tell application "Microsoft Word" if it is running then save ...
2
votes
3answers
1k views

How to fast set hot corners in Mavericks?

I used a downloaded applescript to fast enable/disable hot corners but they don't work after I upgrade to Mavericks. Someone knows what's happening? Here's the disable script, hope it'll help you ...
0
votes
0answers
16 views

Apple script in Error - “Microsoft Outlook gon an error:An error has occure.”

i try to export all mail from outlook using applescript but nested folder not export and display error: Apple script in Error - "Microsoft Outlook gon an error:An error has occure." number -2700 ...
2
votes
3answers
86 views

Applescript for moving recently added files (not created or modified) to another folder?

I would like to get a recent downloaded pdf file ( !: it corresponds to the Finder sort method Date Added, not Date Created nor Date Modified) and either just moving to one another folder (if using ...
0
votes
0answers
7 views

Word extension and AppleScript on Mavericks

I'm writing a scientific article and I would like to use the IUCr templates and tools, available via this program. Once installed, the program should let you select the journal you want to address and ...
0
votes
1answer
27 views

How do I make automator only perform an operation on one file at a time?

I have with 'Folder Action' that automatically runs a Photoshop script on each file that is added to the folder. The folder action has two steps: Open this file with Adobe Photoshop CC Run the ...
0
votes
0answers
15 views

microsoft Outlook got an error : can't get every folder

i try to export all mail from outlook 2011 mac using apple script Error "miscrosoft outlook got an eroor : can't get every folder." number -1728 from every folder code : tell application ...
2
votes
2answers
29 views

Saving Applescript Removes Characters

I have written an Applescript to launch and position two instances of an Application. The script runs perfectly fine in the editor using this code: tell application "App" to activate tell ...
1
vote
1answer
22 views

Where is addressbook:// stored

I wrote an applescript that finds a person in my contact list. tell application "Contacts" set thePeople to first person whose first name is equal to "John" and last name is equal to "Doe" end ...
0
votes
1answer
27 views

Applescript to set Track Comment to Rating

I'm trying to develop an applescript that sets the comment tag to the track's rating. i.e., if it's a 3 star track, I want the comment to say "3 Star". tell application "iTunes" set theTrack to ...
0
votes
3answers
837 views

creating script for ical events from properties of address book entries

I want to create a script that creates alarmed events in ical for birthdays of people that I have in my address book. Unfortunately, I am very bad working with applescript. Below is the outline of ...
12
votes
6answers
9k views

How to set screen resolution with a keyboard shortcut on Retina MBP?

I've found myself switching between the 1440x900 and 1920x1200 "effective resolution" setting depending on what I'm doing (need more space on screen, etc). Is there a way to toggle between these two ...
5
votes
3answers
2k views

Programmatically/Script-atically changing the default Open-With setting

Is there a way to change what app opens a file type programmatically/with a script? Basically, sometimes I'm working on a web site, and I want to set all web files to open with a text editor (*.php, ...
1
vote
1answer
163 views

Mail.app Automator/Sript action for suspicious emails

I am getting fed up with the surprisingly professional looking SCAMS arriving in my Inbox. I wanted to create an Automator action which would tell me who is the actual sender by looking up the IP it ...
0
votes
0answers
31 views

how to exporting outlook 2011 calendar event using applescript

i try to exporting selected outlook calendar event using apple script but get an error: error : microsoft Outlook got an error : can't make vevent of calendar event id 5680 into type specifier ...
0
votes
1answer
24 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
3
votes
1answer
79 views

Tell application screen is not zoomed

When using OS X's native zoom, is there any way (perhaps using AppleScript) to fool an application into thinking the screen is not being zoomed? Something like tell application "System Events" to ...
0
votes
0answers
10 views

Login Mac Using LanRev and AppleScript

Is there a way that I can execute a script on selected Macs with LanRev (Absolute Manage) installed when they are at the login screen to automate the logon process using AppleScript? Currently I have ...
1
vote
2answers
50 views

Take a screenshot of the top-most window

I want to have an AppleScript that takes a screenshot of the front most application. I have used this AppleScript: tell application "System Events" -- get frontmost process set frontmostProcess to ...
0
votes
0answers
11 views

Making .py files open in Spyder

I'd like to have double-clicking on a .py file on my Mac open with file in Spyder. There doesn't seem to be support for this built into Spyder (see here, here, and here). But is the effect achievable ...
5
votes
6answers
6k views

How to run Applescript on Disk mount

I want to run an Applescript when I mount a specific disk. It isn't if the script is located on the disk or not, it should just run when OS X mounts the disk. I tried to accomplish this with folder ...
1
vote
1answer
472 views

Opening new Terminal.app window/tab with a certain profile from command-line or AppleScript?

When I login to my Mac, I want to automatically open a new Terminal.app window with a certain profile, say Monitor, that has a startup command and several appearance settings. I thought it would be ...
2
votes
1answer
643 views

Waiting until a window exists in Applescript?

I'm trying to work with the script below and the repeat until exists window "Print"loop never returns true (I never hear the beep 3). Is this the correct way to wait for a window to appear? I am ...
3
votes
1answer
488 views

Hide windows in current desktop (Lion)

I'd like to make a keyboard shortcut that hides all windows on the current desktop, while ignoring windows on other desktops. Is this possible using Applescript?
3
votes
1answer
525 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
2answers
1k views

Allow application to control computer (assistive devices) on Mavericks via Terminal?

I'm currently working on automated instalation of Mavericks 10.9. I have NetBoot set up. Everything works OK untill I want to execute Applescript. Since the release of new version I need to manually ...