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
65 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
90 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
236 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
182 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
39 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
0answers
40 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
235 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
0answers
47 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
155 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
299 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
47 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
99 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 ...
8
votes
2answers
244 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
123 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
2k 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
128 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
212 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
20 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
134 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
34 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
35 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
56 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
66 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 ...
12
votes
6answers
11k 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
3k 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
290 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
161 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
218 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
89 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
24 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
195 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
58 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
7k 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 ...
3
votes
2answers
2k 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 ...
2
votes
1answer
187 views

Moving finder window from one display to another

Would it be possible to create an AppleScript to instantly drag one screen from one screen to another (say, center of the second screen)?
0
votes
1answer
168 views

Export Folders as MBOX Files Using a Script

You can manually drag your folders to desktop to create an MBOX file, but need to create using AppleScript. please help me. thanks
0
votes
1answer
542 views

Running second Google Drive Crashes constantly on OSX Mavericks

I have been trying to get a second instance of Google Drive to run under another user on my MBP running Mavericks. I have been following the instructions here ...
1
vote
0answers
130 views

Add local file URL handling to Applescript Application

I am using a simple applescript application to open different URL schemes in different Fluid Apps. By setting this app as the default browser, I can effectively parse out the URL scheme and open the ...
1
vote
1answer
39 views

How to automate audio editing?

I want to make audio editing workflows in Automator. My current goal: to cut out exactly the same length from a group of audio files. I haven't found any audio editors supporting AppleScript yet. ...
1
vote
2answers
59 views

automate app launch at midnight ?

How might I use Automator or Applescript to launch iTunes at midnight, and kill it at 5am ? (This is the only time when I have unlimited bandwidth.. rural sat-based ISP.. ugg.) Thanks.
0
votes
2answers
152 views

Script to click app on Menu Bar on Mavericks

I use an application called NoSleep. Technically it is a Kernel Extension. It is used to prevent a Mac (OSX Mavericks) from going to sleep when you close the lid. ...
0
votes
1answer
142 views

Validating AppleScript input text

How would I validate this pattern: 2 digits followed by last name, basically any length of letters. Apple script does not use regular expressions, correct? I need to validate user input and all ...
1
vote
2answers
114 views

OS X: Specifying custom command line invocation of program as application for opening files on double click

I'm primarily a Linux user who recently acquired a MacBook Air and I'm currently desperately trying to find out whether there's an equivalent for Linux's desktop definition files, where you can define ...
0
votes
2answers
794 views

Using applescript to lock screen

I need an applescript which locks my Mac in the same way pressing "shift"+"ctrl"+"eject" would. I tried two different approaches, but both failed. The first one was to search the internet for a ...
1
vote
0answers
323 views

AppleScript auto Email attachment save

I am looking for an AppleScript, that simply uses an email defined by the "Mail Rules" and extracts the attachment to a specific folder. I found different codes, but they all didn’t do want I want. I ...
0
votes
2answers
2k views

Setting a automator action to run everyday

I have an automator action that downloads file from our server. Easy enough to setup but can't quite sort out how to set it so it will operate automatically at a certain time everyday. Tried hooking ...
0
votes
1answer
2k views

How to create applescripts for Outlook 2011 to replicate Quicksteps?

Outlook 2010+ for PCs includes Quickstep functionality, that allows you to create multistep rules or macros to easily perform actions on selected email(s). Examples are automatically categorize an ...
3
votes
2answers
168 views

Mirror number of unread mails in title bar

Is there a way to show the exact number of unread mails from the Mail.app icon also in the title bar? Note that this is not the same as showing the number of unread mails in inbox, since I can change ...
16
votes
2answers
3k views

How do I make an AppleScript file into a Mac App?

I have an Applescript that simply opens a Dialog Box, asks for a user input and runs a Terminal Command and spits out the answer. It works great in AppleScript Editor yet I am trying to work out how I ...
2
votes
2answers
1k views

Is it possible to switch to a specific keyboard layout via `defaults`, *.plist or similar?

I have figured out a workable shell script using osascript (AppleScript) to automatically switch to US keyboard layout when MacVim activates (triggered by Keyboard Maestro), and Swedish layout when it ...