0
votes
0answers
16 views

Applescript to run when connection to specific network on OSx

I have an apple script that I can manually run that will connect to a couple network drives. I would like it to have that script run when my mac connects to a specific wireless network connection ...
0
votes
1answer
23 views

In an AppleScript, how do I call/reuse a subroutine from another AppleScript?

snippet 1a on removeText(searchText, sourceText) set prevTIDs to text item delimiters of AppleScript set text item delimiters of AppleScript to searchText set sourceText to text items of sourceText ...
0
votes
1answer
20 views

Batch APPEND (RENAME) a specific keyword to set of files

I have few files namely - "a", "b", "c",etc.. I want to add the keyword: ".mov" to all files in that folder. Please suggest me an approach which script will be best suited for this - AppleScript, ...
1
vote
1answer
40 views

How can I bind scrollwheel to a key in Mac OS X?

I am new to using a Mac, and I have used AutoHotKey applications that rebind the mouse scroll wheel (for example, E = scroll up by 1 mouse wheel "tick" of sorts) to a specific window title, eg. "Game ...
0
votes
0answers
14 views

Prevent application from detecting screen zoom on Mac OS X

I have an application which streams live television, using a rather expensive portable mobile decoder. And for some reason the company that controls the app has decided to limit the screen size of the ...
0
votes
0answers
47 views

Can one show or hide the Mac OS X on-screen keyboard via either keystroke or API?

I would like to show and hide the Mac OS X on-screen software keyboard (fig. 1) with a keystroke, but no actions to do so are available when customizing the keyboard shortcuts via System Preferences. ...
0
votes
0answers
54 views

disabling password require via applescript freezes Mac

I wrote little script to enable/disable screensaver and password check. Idea is that when my iPhone is near to my Mac (Proximity app checking this), screensaver and password check should be disabled. ...
0
votes
1answer
38 views

How can I concatenate multiple clipboard selections in Quicksilver?

I've been using Quicksilver's clipboard module for years but I've always wanted to do this: copy several bits of text. Then paste them as a concat'd list. I found this Stackoverflow post trying to do ...
1
vote
0answers
19 views

Mail.app rules not triggering

I have a mail.app rule set up to run an applescript when incoming emails come in with a certain subject, but it does not trigger. I see the emails in my inbox, and the rule is activated, but it does ...
0
votes
1answer
37 views

Change screenshot default name

How can I change the default screenshot name, to whatever I have written on Preview search tool at the time of the screenshot. As a function on terminal or as a script. Using OS X Mavericks. Thanks in ...
2
votes
1answer
41 views

Make alias in a folder to be chosen

I want to make an alias of selected files or folder in other folders, which I want to be able to choose each time from a pop-up window. This was something that was available on previous OSX versions ...
0
votes
1answer
37 views

Request help/advice with my automator/applescript service

I created an automator service that runs a very simple applescript: on run {input, parameters} tell application "Finder" set theFile to selection set theFolder to choose folder move ...
0
votes
1answer
55 views

How can I incorporate an applescript function into Xcode?

So I have a Cocoa-Applescript project, and I am creating an application: I have this script in applescript, it's in automator. set input01 to (input as text) The rest is kinda secret, but I'll ...
0
votes
1answer
159 views

How can I use AppleScript to open a new Safari window on the current desktop space?

I need to open a new Safari window in the current desktop space using AppleScript. NOT move to another space which has Safari running and then open another Safari window. Of course, if Safari is not ...
0
votes
0answers
55 views

AppleScript shows “Document could not be opened. You don’t have permission.” but file can be opened?

I am getting a "The document [filename] could not be opened. You don't have permission" when attempting to access several files in an AppleScript. However, I can open these files manually without ...
0
votes
1answer
86 views

Emailing folder's content through AppleScript

I'm trying to write an AppleScript that e-mails all files of the specified folder. It works as expected when there is only one file but doesn't when there are more than one. It just gives me this ...
0
votes
0answers
45 views

Changing Mac OS X text-to-speech voice per contact in Messages.app

I am quite enjoying using the Speak Events.applescript handler in my Messages.app. It speaks the incoming messages. I'd like to have a male voice for my male contacts and a female voice for female ...
1
vote
1answer
301 views

OSX: check for subfolders, flatten directory structure into new folder, then move to desktop

I am in the process of cleaning a huge library of mangas (mostly -but not only- image files ). Each manga has a main folder containing subfolders, one for each volume. But sometimes, volume folders ...
0
votes
0answers
135 views

OSX : Find all zip and rar in a selected folder then unzip and unrar

I am in the process of cleaning a huge library of mangas (mostly -but not only- image files ). Each manga has a main folder containing the different volumes, sometimes in .zip, sometimes in .rar. ...
1
vote
0answers
102 views

Applescript + pdfpen for ocr on multiple files: how to move on when pdfpen freezes

I'm using the following AppleScript to batch-process pdfs for ocr: tell application "Finder" set target_folder to target of front Finder window repeat with i from 1 to count (every folder of ...
0
votes
1answer
71 views

Get path to applescript stored on iCloud

I wrote a shell script which calls an applescript to do some work. The applescript is in iCloud, so I'm manually writing the path to the document storage location... osascript ~/Library/Mobile\\ ...
0
votes
2answers
360 views

Applescript to close box by hitting ok automatically

I need to create a script that automatically closes a popup box that opens approximately every 55 - 65 seconds. Once the box opens, you merely hit OK (within the box) and it closes. I created an ...
0
votes
2answers
256 views

Apple Script - Reopen Closed Finder Windows

I have the following Applescript which toggles the show/hide hidden files and I would like to reopen the user's Finder windows which will be closed as the Finder gets relaunched. tell application ...
2
votes
1answer
614 views

Get the media buttons on my bluetooth headset working with Spotify on OS X

I just bought a Parrot Zik, which is a pair of bluetooth headphones with volume control, play/pause and next-prev buttons. (Or gestures, as they come with the Zik). The phones work beautifully with ...
1
vote
2answers
140 views

Is it possible to grab and store the returned window id of a terminal opened through applescript or bash?

I have been working on this "dashboard" to help control my localhost server environment. It has been scripted in bin/bash for reference. I recently discovered I can use the bin command "osascript" to ...
1
vote
1answer
187 views

Sorting Files into Subfolders based on EXIF Date

I have a huge directory from a HDD recovery that contains 70000+ JPEG files. I tried playing around with some AppleScripts, that I found, but had no luck. I already installed EXIFtool, which might be ...
0
votes
0answers
112 views

How to automate a printer installation on a Mac

I would like to automate the installation of network printers (shared via Windows print servers - i.e. smb) onto clients' Mac. Since I am new to the Mac world, I would like to get recommendations ...
0
votes
0answers
42 views

How can I launch an app, wait for it to exit, then launch another app with AppleScript/Automator?

Without printer drivers on mavericks, I have to launch a headless VM on Fusion to get an AirPrint server but I don't want to keep it on when I start another VM on Parallels, so I want to stop it at ...
3
votes
3answers
1k views

How do you duplicate current open Finder view in new tab (Mavericks)?

In a thread on this forum there is an interesting solution on how to open a duplicate of an already open Finder window with the help of an AppleScript: How do you duplicate current open Finder view? ...
1
vote
0answers
144 views

AppleScript - “Close tabs to right of current tab” in Safari 7

I have been using the AppleScript below as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this ...
3
votes
3answers
1k views

How to update Mac OS X Mavericks desktop background from a script

How can I update Mac OS X Mavericks desktop background from a script? Update Mac OS X desktop background from a script worked up to OS X 10.8, but doesn't work anymore. The desktop defaults to the ...
-1
votes
2answers
115 views

Change date scheme of file name with script

I have about 8 years of video files on a server for my work. We want to change the files' date schemes from MMDDYY to YYMMDD for organizational purposes. The filename structure is MMDDYY_Filename.xxx. ...
0
votes
0answers
25 views

Is it possible to duplicate mail.app and access using applescript on mac?

I made a simple applescript to create an email conversation. It was a program that, when you sent it an email that said "update schedule", it would send the sender of the message an updated schedule ...
1
vote
1answer
24 views

Register a file specified by open

So I have this small bundle with applescript made, and it even seems to work as it should. However, it appearently doesnt open my files when it is asked to via the open utility. It works though when I ...
0
votes
1answer
305 views

Use Automator for handling multiple file inputs through shell command in OS X

I tried to make an Automator drag and drop application but I'm totally lost. The script should use cat to join multiple audio files together. Steps: Read the selected finder files (which I drop ...
0
votes
0answers
100 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)? I am newbie when ...
1
vote
0answers
119 views

Applescript app. won't force OSX to connect with VPN on Mac 10.8.4

I set up an applescript application (saved under the name "BTGuard VPN-OSX) to force OSX to connect with my VPN service (BTGuard). I followed instructions from this link ...
3
votes
2answers
300 views

Change the OSX system language in a script

Manually I just go into the system preferences, change the language ordering, and restart my app so it starts up in the default system language. Then I can run automated tests with the app running in ...
-2
votes
1answer
80 views

Mac always restarting after reboot

I created an AppleScript to restart my Mac: tell application "System Events" restart end tell I put this script into Calendar.app and set it to start at 7.00. When I put script into calendar and ...
1
vote
1answer
177 views

Why does “Terminal” get replaced with “Applet” in AppleScript?

I have a simple AppleScript (packed as an app) that tells the Terminal to execute a couple of lines of code. Every so often -- about once every 7 to 10 days -- after a cold restart, the code has been ...
0
votes
3answers
124 views

Process clipboard content on Mac OS?

I want to see if there is a tool or script available that I can use to modify clipboard content on the fly. Often when I'm writing code, I'd like to take a string of text and make it a slug. Instead ...
0
votes
1answer
217 views

Trying to Use AppleScript to Convert .xls and .xlsx to .txt (Tab Delimited), Needs Fixing

I copied this from an answer I got from another thread. I am trying to convert ~300 .xls and .xlsx files to tab delimited. They are all in the same folder. If anyone knows a better way, please let me ...
0
votes
0answers
43 views

Applescript to change the address of an iTunes streaming file

it's a really really simple concept, I just can't figure out to do it... I'm trying to use Applescript to use iTunes to listen to different files on a site almost like a background radio. To get this ...
0
votes
0answers
108 views

Making Google Chrome bookmarks update/overwrite with page last left off in same domain

I'm wondering if there's a way I can make Google Chrome 'save my progress' through a certain domain, and update with that page to the same bookmark. Just a quick time saver to avoid re-bookmarking, ...
0
votes
1answer
443 views

AppleScript + Quicktime: Start and stop a movie recording and export it to disk

Attempting to start a screen recording, wait a few seconds, stop the recording and export saved recording to disk. Versions AppleScript 2.2.4 QuickTime: 10.2 AppleScript set filePath to "" & ...
1
vote
1answer
45 views

Restarting multiple mac computers with terminal

How do you restart multiple mac computers that are on the same network with terminal? I know the ssh command to login to one computer but I want to be able to send a reboot command to multiple ...
0
votes
1answer
96 views

send applescript a url ,if the url file's extension is “.mov” download it to desktop

I'd like to remote control my mac mini(using as a NAS with Mac OS X 10.8.2 Server)download files from URL. I think applescript can realize it. So I'm puzzled by two problems: 1.How can I send URLs to ...
0
votes
2answers
238 views

Applescript to get name with VLC 2.0 should work but doesn't

I'm trying to get the name of the current file playing in VLC. Applescript SHOULD be able to do this with VLC 2 and on (it's in the dictionary, "name of current item") however it keeps not compiling, ...
3
votes
1answer
194 views

AppleScript based Automator service quite unstable (sometimes very slow, sometimes encounter error)

I have some applescript based Automator services, for instance, Launch Emacs With Selected File: tell application "Finder" set selectedDirectory to (quoted form of POSIX path of (target of window ...
0
votes
2answers
1k views

Can AppleScript/osascript be used to click menu extra menu items?

I have an application installed that only appears in the menu bar (as a menu extra to the right). I would like to click one of the items contained in its menu via osascript. I've found the following ...