Hi All
I have a big problem in the moment. I have to sort out an Excel sheet with names in it. There is always a first name and a last name following each other in the same order. Each name fills a cell. These Cells are alligned in one row. Example
Bill|Cospy|James|Bond|George|Clony|Michael|Jacksson
Now I want that each first name a...
Anyone know how to tell php execute a applescript?
...
I'm trying to build an xcode project and run it through the iPhone Simulator via applescript. I'm aware of xcodebuild but it doesn't let you run the app in the simulator. I've gotten pretty close with the script below...
tell application "Xcode"
set targetProject to project of active project document
tell targetProject
set acti...
Is there a way to get the current working directory of a process using it's PID programmatically on OS X?
Cocoa, Carbon, or AppleScript are all acceptable.
It is not acceptable to send "pwd" to the current terminal window/tab (Do not want to affect the workspace).
The linux command "pwdx" also is also unacceptable (just in case you re...
I want to programmatically create NIB (or XIB) resource files - like resource import tool. Making XIB file manually is not impossible, it is XML-based file, but there are too many unspecified items.
So, I'd like to use AppleScript to drive IB itself and create the resources with it, but I fail to do so - I can't create any new items and...
I'm working on a script where a user logs into a guest account on OS and is prompted for their network credentials in order to mount their network home folder (while they benefit from working on a local user folder).
As the guest folder is deleted when users log out, I want to discourage them from saving anything there. I would like ...
I open ScriptEditor, click on Record, click on some icons in the doc, open System Preferences, then click stop in the ScriptEditor and nothing happens, meaning I get no script. Nothing was recorded.
Has anyone being able to record any applescript using Script Editor under Snow Leopard? Am I doing something wrong?
Thanks,
-Sergio
...
Dear all,
is there a way to get the online status of each Skype contact via Applescript?
So far I only managed to get the group of online users. However, I need also the corresponding online status.
Thnaks for your help!
Cheers
Julian
set groupType to send command "GET GROUP " & group & " TYPE" script name "getType"
if groupTyp...
I'm trying to run an applescript inside my Cocoa app using the system(); function - the string I'm passing to the function works in terminal and the applescript itself is fine, I think it has something to do with NSString - can anyone help?
//add to login items
NSLog(@"add to login");
NSString *pathOfApp = [[NSBundle mainBundle] b...
I'm building an Applescript that will scan my network every X minutes, checking for my house's Xbox360 or PS3 and enabling my Transmission BitTorrent client Speed-Limit Mode when either console is online.
Currently I can only Pause all transfers or resume all transfers using applescript, as there are separate key-commands for start/stop...
I am using Appscript - a Python interface to AppleScript - in a project of mine that basically gets data from a Mac application.
Here is a sample code:
asobj = app('Things').to_dos()[0]
self.id = asobj.id()
self.name = asobj.name()
self.status = asobj.status()
Every invocation of the properties (id, name, status) does...
How can i get a list of running applications in the same order they appear when doing ⌘ + ⇥ from within an applescript?
I.e. if I use TextEdit, then Preview, then iCal, the order is
iCal, Preview, TextEdit
This question which asked if there was an API that could produce this list provided this answer:
$ cd /System/Library/Frameworks...
For reasons that only the developers can understand, Firefox will create and open .url files on Windows and .webloc files on OS X but won't allow the Windows version of Firefox to open .webloc files or the OS X version of Firefox to open .url files. (.url files open in Safari but that's not good enough for reasons that aren't worth going...
I noticed that while this applescript:
tell application "Finder"
{...}
update itm with necessity
{...}
end tell
refreshes normal Finder icons, on the other hand, it doesn't refresh the Preview icons under Leopard. I'm wondering if there's an AppleScript / Carbon / Cocoa / C way to refresh or reset a preview icon of a Finder file...
In Apple's Mail application, one can specify that an AppleScript script be run when a rule matches a message. However, when I write a script to take advantage of this ability, the script is passed the message previous to the new one in the list (or maybe the currently selected message - not sure). Searching around, I see other folks expe...
I need to run a script as part of an application first-run step, to remove some legacy components from a previous version. Typically these components are installed in either $HOME/Library or /Library, and the script can simply move them to the trash.
The problem is, in the case where the user is not an administrator, and the components ...
I have a <property> in my Cocoa project's sdef file, and I can get my Applescripts to read the property correctly, but I can't get them to set it (I get an error in the Applescript Editor).
My sdef is pasted below. Is there a special convention for the property? I would have thought it'd just be - (void) setLength:(NSNumber *)len;. Is i...
in applescript if i do:
do shell script "echo \"G:\\CRE\\MV Studios\\Exhibition Projects\"|tr \"\\\\\" \"/\""
I'd expect all my backslashes to come back forward slashes. To make it slightly easier to understand he tr command would look like this without all the escapes
tr "\\" "/" #there's still an escaped \ for the shell
But what ...
I'm writing a script to keep track of missing frames in a render (thousands of image files). to find the numbered frames in the sequence I do this:
set thecontents to every paragraph of (do shell script
"while IFS= read -r -d '' file;
do echo \"$file\"|sed -E \"s|.*[^[:digit:]]0*([[:digit:]]+)\\..*|\\1|\" ;
done< <(find \"" & thefolderP...