Shell script to get path of application in MacOS
Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: #!/bin/sh result=`exec osascript
Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: #!/bin/sh result=`exec osascript
I found some pages on the web on how to run an AppleScript from the terminal, but this seems to be the only one that works in my situation: echo ‘tell application “Google Chrome” to quit’ | /usr/bin/osascript In my case, my keyboard stopped working so I wanted to safely shut down the programs via … Read more
I’ve been getting warning messages in my Console log stating the “Adobe Unit Types.osax” has deprecated functions. Then, when I starting scripting Xcode with AppleScript, I’ve been getting a bunch of errors about the above listed library. Well, Adobe had something to say about that: http://kb2.adobe.com/cps/516/cpsid_51615.html
Recently, I needed to automate printing a Word document to a PDF file and have it saved to a predefined location. There were some good articles on the web about how to do the printing part, or the PDF part but not how to save the output. So, here’s my stab at printing a Word … Read more
In a previous posting, I had listing all of the applications you would need to decrypt and encrypt email messages in Apple Mail. However, I did find that after moving up to Mac OS X 10.5.6, I was unable to decrypt messages delivered from certain mail servers. I could decrypt the messages by hand, but … Read more