Is there any way to automate a opening files with open dialog box on Mac OS? The application asks user to open files with the standard open dialog box. But I need open files automatically.
The idea is to write script or a small application which will click the button in the target application to open dialog box and then somehow select f...
Here's the issue:
I have a list of App names that I want to launch. They do not include a path (e.g. {"VLC","Microsoft Word"}. I have two different copies of VLC in different directories. I would like Launch Services to ONLY open the one from /Applications/ and not EVER launch from /Applications/AnotherDirectory
I want to get the path ...
I want to parse the Yahoo! Weather API and I want to save these element attributes to variables for later use:
<yweather:location city="Zebulon" region="NC" country="US"/>
<yweather:astronomy sunrise="6:52 am" sunset="7:39 pm"/>
<yweather:forecast day="Wed" date="7 Apr 2010" low="61" high="96" text="Partly Cloudy" code="29" />
H...
I want to be able to run an applescript from another applescript, but have it return immediately.
I cannot use "osascript script.scpt &" because osascript does not permit "user interaction" and I want to be able to.
So, I'm looking for the equivalent of: osascript script.scpt & in "run script script.scpt"
EDIT for Clarification:
I...
Hi,
I'm using jRuby and a Java library (using itself an applescript to play with MS Word) to convert Word documents to PDF files. Sometimes I get a dialog about margins issues, or MS Word is freezing because the file is too big... Could anyone recommend a script or library that I could run on OSX to manage these issues (closing the dial...
We are a network of Mac computers. I would like to send email addresses to colleagues with links to files on network locations. I made the following applescript:
tell application "Finder"
set uuu to URL of the first item of (get the selection)
set the clipboard to uuu
end tell
which puts the URL of the currently selected file into th...
Is there a way to use defined AppleScript methods in other AppleScripts which reference the original AppleScript with something similar to import (f.e. in PHP)?
I wrote a methode to set Skype status and mood-text:
on setSkypeStatus(status, mood_text)
tell application "System Events"
set skypeRunning to count (every process ...
I am creating an application using AppleScript and I want to display a list of the next ten (including the current) songs iTunes will play from iTunes DJ. I can't find it anywhere on the internet, Google, whatever so I asked it here. Can anyone help me? Thanks
...
Hi All,
I'm really new to AppleScript so this is a real basic question but I couldn't find the answer or an example in the AppleScript ref. guide.
I'm making a simple script that I'll bundle as an .app file, in the AppleScript Editor I can see the .app's Bundle Contents in which I have an icon a descritpion file and a "Scripts" folde...
Using applescript how can i change the color of "cells ranging from A3 to E3" to light grey color.
I still want the font to be in black color.
...
Problem...
Since MacPerl is no longer supported on 64bit perl, I am trying alternative frameworks to control Terminal.app.
I am trying the ScriptingBridge, but have run into a problem passing an enumerated string to the closeSaving method using the PerlObjCBridge.
I want to call:
typedef enum {
TerminalSaveOptionsYes = 'yes ' /* ...
I would like to use AppleScript on Windows. Is there any IDE or Windows port ?
...
How do you execute a Sikuli script from an AppleScript?
...
Why a handler is not called within the tell block?
Error is -1708
on stub() -- method is not called in tell block
end stub
tell application "Finder"
stub()
end tell
...
I’m setting up a filter in Mail on OS X that calls an AppleScript whenever an e-mail sent to a specific e-mail address arrives.
Will the AppleScript get passed/have access to any of the e-mail’s properties? I’d like it to take different actions based on the “from” e-mail address.
...
I'm attempting to execute an uninstaller (written in AppleScript) through AuthorizationExecuteWithPrivileges. I'm setting up my rights after creating an empty auth ref like so:
char *tool = "/usr/bin/osascript";
AuthorizationItem items = {kAuthorizationRightExecute, strlen(tool), tool, 0};
AuthorizationRights rights = {size...
I am trying to get applescript to read todays ical events and write them to a file. The code is as follows:
set out to ""
tell application "iCal"
set todaysDate to current date
set time of todaysDate to 0
set tomorrowsDate to todaysDate + (1 * days)
repeat with c in (every calendar)
set theEvents to (every event of c whose start date ≥...
I am currently working on a way to automate the process of adding new targets to my XCode projects. One target has to be added to multiple XCode projects and each target in the different project needs the same source files to be added, same groups to store the source files in the XCode project, and the same build settings. Doing this man...
In my Cocoa program, I want to examine what programs are registered to run at startup and modify that list as I feel appropriate. In order to be compatible with Tiger it seems like I need to work through AppleScript. I currently have the following code:
NSDictionary* errorDict;
NSAppleEventDescriptor* returnDescriptor = NULL;
NSStrin...
i dont have a wifi router, so when at home i need to turn my laptop into a wifi source so that both myself and my partner can access the internet.
however during the days i work at a coffee shop and require the use of their wifi.
i'm running snow leopard and i find it stupidly cumbersome to constantly be turning off and on, first inte...