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

learn more… | top users | synonyms (3)

0
votes
1answer
296 views

Automator: start embedded YouTube

So, I need to show some kids a sequence of YouTube videos (with Automator, because there's no one available to man the computer for 30 minutes), but it's at a school where the YouTube domain is ...
0
votes
1answer
264 views

Applescript and Fantastical

I trying to add a Fantastical event with AppleScript. Aparently the Fantastical Suite is quite simple as there is only one verb. parse sentence v : parse sentence parse sentence text : sentence ...
0
votes
2answers
849 views

Applescript dialog, Bash alias/function

I'm trying to create a short alias for creating System dialogs from the Terminal. I tried to create a Bash function (since an alias didn't seem to take arguments) and add it to my .bash_profile, but ...
0
votes
1answer
172 views

Toggle Apple Mail “Classic Layout” with shortcut?

Can anyone figure out a way to switch Apple Mail (v5.2) to/from "Classic Layout" mode with a hotkey? Maybe via Applescript?
0
votes
1answer
400 views

Applescript to automate drop-down selection in Mozilla Firefox

I'm trying to automate the selection of a value from a drop-down box in Mozilla using an applescript. What I want it to do is to tab to the drop-down box and enter down twice to select the third item ...
0
votes
1answer
1k views

Script to be activated if web page changes [closed]

I'm looking for a way to have a script running on my desktop that will check a certain webpage for changes every x seconds, and if a change is made, it gives me an alert. I understand that with ...
0
votes
1answer
1k views

Apple Script + VPN + Textbox

I have an applescript : tell application "System Events" tell current location of network preferences set VPNService to service "VPN (Cisco IPSec)" if exists VPNService then ...
0
votes
1answer
193 views

Script to Update/download most recent iTunes podcast WITHOUT opening iTunes at all?

I have a couple favorite podcasts that I subscribe to in iTunes. I'm using You Control (so I don't have to open iTunes to play my music). I'm using Keyboard Maestro. I've made a macro that runs ...
0
votes
1answer
87 views

Turn on iTunes EQ via AppleScript

Can I turn the iTunes EQ on/off using AppleScript? I found a way to change the preset, but not turn the EQ on or off.
0
votes
1answer
3k views

How to initiate a specific keystroke using automator?

I have the following code : on run {input, parameters} if application "KeyboardViewer" is running then quit application "KeyboardViewer" else activate application ...
0
votes
4answers
646 views

Pressing the control key with AppleScript

I use Voice Over and Dragon Dictate. I have figured out how to make Dragon Dictate press Control-Option-A, which makes Voice Over read a page of text, and now I would like to figure out how to tell ...
0
votes
1answer
666 views

Script to turn flagged emails into reminders

I am looking for a script that will recognize when an email is flagged and then turn it into a Reminder using the Reminders app.
0
votes
2answers
647 views

How can I connect Linux server with Applescript using iTerm or Terminal?

I want to connect and run bash script on Linux server automatically by using Applescript and iTerm or Terminal on OS X. How can I connect Linux server with Applescript use iTerm or Terminal?
0
votes
1answer
512 views

Drag and drop from iPhoto may remove the pictures from iPhoto Library, how to recover it?

I modified the "Recursive Image File Processing Droplet" example provided from Apple in AppleScript Editor to rename any dropped file and move it to a custom folder. It worked seemingly flawlessly ...
0
votes
1answer
108 views

Applescript won't play movie when waking from sleep

I have the following AppleScript, which is triggered by iCal to act as my alarm clock: set musicPath to the path to me as text set musicPath to text items 1 thru -12 of musicPath as text set ...
0
votes
1answer
328 views

AppleScript and Growl: How to choose the display style?

I'm using AppleScript and calling Growl notifications and I notice that it ignores my choice of using Bezel as my system default style. It only changes if I manually change it in Growl's preferences. ...
0
votes
2answers
655 views

How to make Applescript quit a specific program for all users?

My wife and I are set up on a single laptop and I have our iTunes libraries stored on an external HD. I'm writing an applescript to auto eject that drive when we want to take the laptop elsewhere (we ...
0
votes
1answer
443 views

pasting commands from TextWrangler to Terminal (applescript troubleshooting)

I have a following script that I have been using for years to paste selection or a whole line from TextWrangler to R. I got it from some website, slightly modified, and it has worked perfectly: tell ...
0
votes
1answer
4k views

Use AppleScript to launch and manage Quicktime Player in the background

I have a Perl-based audio player that runs on OS X, and I need to update how the audio files are played. I'd like to use AppleScript to control the QuickTime Player, because it will do what I need, ...
0
votes
1answer
319 views

Generate an iOS Project (.xcodeproj) with AppleScript

How can I generate an iOS project (.xcodeproj) with AppleScript (without XCode)?
0
votes
1answer
140 views

How can I make a keyboard configuration become default when I hook it up?

At work, I have a MacBook Pro and a RHEL workstation that share a HP keyboard and mouse via a KVM switch. I do most of my work on the Mac so I prefer to change the modifier keys so they command and ...
0
votes
1answer
133 views

How do I refresh Application metadata - URL handlers, Web browsers - after installing my own AppleScript?

I'm working on an Apple Script that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser. Anyone know what this is?
0
votes
3answers
849 views

Applescript to disable screen saver through sending keystroke

I'm trying to write an applescript that will disable the screen saver through sending a keystroke. Something like sending a "shift key" pressed every 30 seconds. I don't want to have the applescript ...
0
votes
1answer
632 views

Fastest way to migrate an application between Mac's?

after using the Migration Assistant each time arrives a new OSX or i buy a new MacBookPro, its time to tidy up my work machine, Since upgrading my current MBP(mid2009 2.8GHz 4GB DDR3) to Lion many ...
0
votes
1answer
182 views

I want a pop up notification when a file has certain info written to it

I have a server that my machine is connected to via AFP. On this server there is a file called 'TransferLog.txt'. While the server is doing it's work it adds to this file. When it finally writes ...
0
votes
1answer
217 views

How do I create Growl notifications for FCE?

I found this script online somewhere and I'm trying to make it so that it constantly checks to see if Final Cut Express is rendering and when it finishes rendering, it displays a Growl notification. ...
0
votes
1answer
1k views

AppleScript - Changing Width of Dialog Box and Adding Text

I have a normal display dialog working using AppleScript within the Editor. How would one increase the width of the display dialog and add text under the input field and above the buttons. In advance, ...
0
votes
1answer
21 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, ...
0
votes
0answers
8 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, ...
0
votes
0answers
6 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
26 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 ...
0
votes
0answers
10 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
43 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 ...
0
votes
0answers
17 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 ...
0
votes
1answer
29 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
22 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 ...
0
votes
0answers
17 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 ...
0
votes
1answer
34 views

Using applescript to create spaces and launch apps

So the end goal of what I am looking to do is this: When I am at work I use an external monitor with my MBP. I have a consistent set of spaces and apps that I setup everyday. What I would like to ...
0
votes
0answers
20 views

AppleScript/Automator Add AutoCorrect Settings

I am making a AppleScript/automator script for April Fools that is going to change the AutoCorrect. I know that I can change the autocorrect settings by going to Settings > Text > '+' ...
0
votes
1answer
14 views

Launch Apple Script on App Focus

Is there a way to configure an Apple Script (or any script for that matter), to be run every time an application is focused? For example, if I am on Safari currently, and I tap on a QuickTime window, ...
0
votes
0answers
27 views

How to iterate through iCal events in Applescript

I am trying to iterate through the events in a calendar to copy them to another: tell application "iCal" set localEvents to events of calendar "localCalendar" set remoteEvents to events of ...
0
votes
0answers
20 views

Automator script doesn't show up in services menu

I made an automator script to help me to assign LaTeX indexes to words in TexMaker. It would convert a highlighted word test to \index{test} test. This is the little script: on run {input, ...
0
votes
1answer
32 views

Programmatically catch app opening / closing

Is it possible, via an AppleScript, a background service or daemon, or any other programmatic way, to catch the following events: a specific app (eg Aperture, Excel ...) being launched, an app being ...
0
votes
0answers
46 views

Mac Outlook 2011 - moving folders from On My Computer to Exchange Server

I've just noticed a very odd peculiarity about using Mac Outlook 2011 with an Exchange server. I am hoping to write a script that will allow me to highlight a folder On My Computer and move it onto ...
0
votes
1answer
12 views

My iPad unable to view subtitles

My iPad unable to open or view video online with subtitles. But when I open the same website with my lappy, the video and subtitles work well. There have something wrong with the website or my iPad?
0
votes
0answers
34 views

Applescript to click green (zoom) button with Option down

Based on Applescript - the activate command makes application "half-active", I wrote the following Applescript which would allow me to click the green (zoom) button at the top-left corner of ...
0
votes
0answers
30 views

How to use Numbers to generate pdf on a web server and then email it out?

I have an issue. My client loved the report I generated using Numbers on Mavericks OS X. The bad news is that the data is being processed on a ubuntu machine running python and django. I want to ...
0
votes
0answers
46 views

Automatically sort Finder items based on file type?

I work in video production, when a new job comes in we use Post Haste to create a new directory with our folder structure and default files included. What I'm looking to do is automate the process of ...
0
votes
0answers
32 views

Applescript commands to move an app window to a specified space

I’m trying to write an applescript to launch all of the applications I typically have open, then move them to the desktop on which I typically put them (for example, my mail client is on desktop 4 and ...
0
votes
0answers
28 views

Unable to run 'display notification' using osascript in a tmux session

If I run the following command in Apple Script Editor directly, display notification "Hello, world" I can see a notification as expected However if I tried to invoke it via command line: ...