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
2 views

Applescript Keystroking to two different scripts [on hold]

I am attempting to make a kind of points system. What I want: When X is done add (an amount of) points to one script. But if A is done, add (an amount of) points to a different script. Hmm, that ...
1
vote
1answer
14 views

need to script connection to telnet and send commands to remote device with no user input

Ok I need some help making a script that will connect to a server and send 2 commands Ideally I would have telnet 192.168.2.230 9993 and once it logs in (no user name or password required - the ...
2
votes
1answer
42 views

Trim filenames in automator w. shell or applescript

Why doesn't this work? (The automator is in swedish but the parts are: get selected finder objects - get folder contents - run shell script) I want to trim the first three characters of the ...
0
votes
0answers
13 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 ...
1
vote
1answer
39 views

Script to check Software Version

Hi i'm tryin to write a script to check software version. I want to pass my own variables, which are name of the Application and Version. Here's a copy. It's not working for me currently... i'm a ...
1
vote
1answer
17 views

SpeechRecognitionServer not found in Mavericks with applescript?

I am trying to use an applescript to get speech input from a user and then perform and action. However, the code i'm using was made for osx lion. When I put it into applescript editor, the editor ...
1
vote
1answer
35 views

AppleScript To Manipulate VLC

I want to do a script, that it can launch VLC player, and in VLC player "Open a file", then "Select a folder", then click on "add" then "play" it. I think that Automator can't do this. But ...
1
vote
1answer
32 views

Can I give Automator apps a window?

Can I create a window / UI for applications created using Automator? Or is this just not possible with Automator apps? Background: I created an "application" through Automator, and dragged the app ...
5
votes
2answers
229 views

“drag n drop” application to convert images to base64 string (for web development)

I'm after an osx program that will convert an image into a base64 string (for web development). Basically replicates this: http://webcodertools.com/imagetobase64converter/Create I suspect there is ...
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 ...
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 ...
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
1answer
19 views

Is there a way to create a notification in the Notification Center with a clickable link?

I can create a notification in Applescript via display notification "Notification Text" with title "Title goes here" subtitle "subtitle goes here However is there a way when I click on the ...
5
votes
3answers
39 views

AppleScript to show package contents of hidden original of alias

I'm writing an AppleScript that will be run from within Automator, because ultimately I will define a keyboard shortcut to call it as a Service. I don't know any way to have a Service appear in an ...
2
votes
1answer
22 views

Running script through launchd with no annoying prompts

I have an applescript that checks my macbook battery and forces hibernation when it reaches a certain level, after displaying a 60 sec countdown. I've successfully set it up to run in the background ...
0
votes
1answer
29 views

How do I get osascript to parse backslashes and run this command in a new Terminal window?

Here's a command that works fine when I paste it into the Mac Terminal window: echo -n -e \\033]0\;My Custom Window Title Here\\007 ; ping www.google.com In particular, it sets the Terminal's title ...
0
votes
1answer
34 views

How to batch combine mkv and srt files to mp4 with ffmpeg

I'm trying to get an applescript to combine .mkv's with .srt's after i added those files to a folder. I've managed to do the automatic conversion from mkv to mp4 and add them to itunes. The only ...
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, ...
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 ...
1
vote
1answer
39 views

AppleScript/Automate Mail Tasks

I've been trying to help a coworker automate a weekly email compilation he sends out but haven't yet been able to figure out how address a few specific areas...first I'll explain the situation, then ...
2
votes
0answers
113 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 ...
1
vote
1answer
15 views

Droplet Applescript Touch

i was trying the last days to get a droplet working, which is changing the time stamp of every dropped .jpg / .tif / .dsc / .cr2 to the actual time or even a few secs earlier in Terminal. Would ...
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
10 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, ...
1
vote
1answer
55 views

Facetime Applescript Edit

Does anyone know a quick way that I could modify the following script (from CornDoggyRob) to automatically maximize the incoming call window and to adjust the orientation? I would love to try this ...
0
votes
2answers
32 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
41 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
40 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
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 ...
1
vote
1answer
65 views

Applescript to import mail with attachments into devonthink that would expand archived files

My workflow is to tag and put all incoming docs from Mail.app into Devonthink. I do this with Applescript. Script is working fine for me with one exception - I do not know how to make it expand .zip ...
0
votes
1answer
35 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 ...
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
1answer
36 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
20 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
533 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 ...
1
vote
1answer
55 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 ...
2
votes
1answer
18 views

Possible to automate entering star ratings and play counts for identical/duplicate song in iTunes?

I'm in the process of replacing my low quality <192 kpbs MP3s into either 320 kpbs MP3 or ALAC files in iTunes. Right now my routine is to import the new HQ files to iTunes, go to "Show Duplicate ...
0
votes
1answer
37 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
2answers
63 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 ...
0
votes
2answers
26 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 ...
0
votes
0answers
21 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?
2
votes
1answer
32 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
14 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 ...
3
votes
2answers
36 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
17 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 ...
2
votes
1answer
27 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", ...
0
votes
1answer
31 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 ...
3
votes
4answers
88 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
17 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
109 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 ...