Tagged Questions
0
votes
1answer
21 views
Set environment variable for the process before startup [duplicate]
I have the following situation: I have Mac OS bundle with application which uses some 3rd party dylib's and those dylib's depend on some env variable, let's name it ENV_VAR. I want to set ENV_VAR to ...
0
votes
0answers
101 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 ...
1
vote
2answers
217 views
How can I reproduce the Finder sort order without asking Finder to sort for me?
I work with a large collection of mostly-text files subdivided by series, periodically mirroring them from an upstream repository and repackaging them using a shell script from a slightly chaotic ...
1
vote
2answers
1k views
Change Date Created based on the filename
I've downloaded a bunch of my Instagram images but the Date Created of the files is set to the time that I initiated the download. What I do have though is the Date Created in the filename. What I ...
0
votes
2answers
199 views
How to get the path of the selected Image in Adobe Bridge via Applescript?
I am trying to get the parent file path of a selected image thumbnail in Adobe Bridge CS5.1 to pass it on to a shell script. An Applescript wraps a tiny javascript command in command like this:
set ...
29
votes
3answers
12k views
How can I trigger a Notification Center notification from an AppleScript or shell script?
I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write.
Is there a built-in command or a third-party library I can use from either an ...
2
votes
3answers
236 views
How can I see how long my computer has been active (as in not idle)
I've seen a variety of solutions to check how long my machine has been idle, and I know I can check how long since last reboot with uptime, but I'm curious if there's a way to see how long since my ...
1
vote
2answers
796 views
How do I run an OS X command script on remote Xserves from a desktop OS X script?
The answer to an earlier question, Access and control home office network, iMacs, and Xserves, left me with a new problem. To review, I have a computing environment comprised of:
27" iMac with dual ...
2
votes
3answers
2k views
/bin/sh: rm: command not found
I have problems with some applications that use AppleScript shell script feature. For example, Growl's uninstall scripts shows an error:
error "/bin/sh: rm: command not found" number 127
The source ...
1
vote
2answers
1k views
How do I write an AppleScript which auto reconnects to Wi-Fi?
Sometimes I need to download very big files from the internet using torrents (I'm using Transmission) and the Wi-Fi always drops. I bought several routers and modems and none of them work. I've been ...
1
vote
3answers
345 views
Make a screen-shot and upload with a script
I am not very good with AppleScript but I would imagine this is something quite easy for the AppleScript guru out there, I am looking to make a screenshot of a region like with doing Apple-Shift-s and ...
2
votes
5answers
3k views
How can I write a script to open multiple terminal tabs and execute code in them?
I want to be able to open the terminal application and have it either automatically run a script that opens several tabs and run an arbitrary set of commands in each. For example I would like one tab ...
1
vote
1answer
436 views
AppleScript app started prompting to run or quit. How can I disable this?
I'm not entirely sure why this has started happening since this is completely new behaviour and I haven't done any system updates but I have a nice little toolbar app for my Snow Leopard Finder.app ...
2
votes
3answers
639 views
Check if a process is running, if not execute it again in Terminal
Is there a way to periodically check if a process is running with (probably with Apple script, or some other shell script) and if not then to execute it in Terminal?
I have a PHP script that is needs ...