OS X Technologies :: Script Work With One Application And Not The Next?
Jun 28, 2012
This works: tell application "System Events" to try if exists process "Safari" then tell application "Safari" to quit saving noon error do shell script "killall Safari"end try And this does not work  tell application "System Events" to try if exists process "Ovolab Phlink" then tell application "Ovolab Phlink" to quit saving noon error do shell script "killall Ovolab Phlink"end try Â
it hangs on the word 'no' and gives message: Syntax error Expected end of line but found application constant or consideration. Ovolab Phlink excists of course on my HD. Â
If I take out the second 'Ovolab Phlink' and replace it with 'Safari', it does not hang (and does not work).Â
Info:
MBP, MM, MBP - 10.6 + Windooz XP on a hard partition
I'm creating an AppleScript application bundle that relies on a separate application. I want to add this application to my bundle and then call it via "tell application xyz ... end tell"Â
So far I have been unable to make AppleScript see this application, except when I gave it the absolute path of where it is located. Obviously, as soon as my application bundle is moved to a different directory this will not work anymore so is not a solution. Tinkering with "path to me" and thus creating the current path to the bundled application also does not work, when saving the script, ScriptEditor tries to find the application and see if the commands I want to tell it exist btu fails and consequently does not save.Â
I tried putting the application into the Contents, Contents:MacOS, and Contents:Resources folders, all without success.Â
I have never worked with applescript before, so I am completely lost. I have a program that does not like to be open when the computer goes to sleep. I usually remember to close the app, but sometimes I forget and get myself in trouble. If I do forget, very bad things can happen to the database of the program, so it is imperative that it is closed.
I am hoping there is an applescript that will quit the application if I put my laptop to sleep, usually by closing the lid. I don't want to trigger the sleep with the applescript, just something that will see that the computer is going to sleep and quit the application before it happens. Is this possible, and if so, how do I go about doing it?
Info: MacBook Pro (15-inch Mid 2009), Mac OS X (10.7.4)
I have a multi-step automator workflow that has an embedded "Launch Application" step that calls an applescript application that I've written. The application goes through a list of URLs. I don't want the workflow to start with the next step until my application has cycled through all the URLs. Currently, I have hard coded a pause into the workflow, but I'm looking for something more precise (if I set the pause too long, it results in unnecessary delays, if I set it too short, my workflow gets messed up).Â
I'm assuming there is some way to modify my application and/or the workflow to send a complete status that can trigger the next step in my workflow.
found today that 10.7.4-OS X doesn't handle IPv6-autoconfiguration.Â
At tcpdump I see the "Router Advertisments" but the configd can't answer with "Router Solicitation":
Jun 29 16:37:51 tksmac configd[16]: RTADV en1: send Router Solicitation: failed, Operation not permitted  All other devices in the same network works fine with IPv6 (autoconfig). Â
Info: MacBook Pro (15-inch Mid 2010), Mac OS X (10.7.4)
i have an Automator "application" that i made with the help of people on this very board that worked flawlessly on Snow Leopard and previous OSs but doesn't work in Lion anymore.i was hoping if someone could look at the file (link below) and either tell me what needs to be changed, or go right in and change it for me! (i don't really have much experience with scripting). i have a txt file with a list of filenames. the script references this list, goes to the folder that contains these files (but the folder also has other files in it too) and copies the referenced files into a new folder. url...
I'm running 10.7and I'm trying to create an applescript to install printers. I'm able to run the first command without issues but the other two keeps giving me error messages in applescript. I assume its because the other two commands have spaces? These are the commands I run when in Terminal:Â
I have a Mac Pro 2xQuad 2.66Ghz and the cores are always really hot even when idle. When I chat and surf the Internet I only use ca. 3% of the cores however the temperatures are at ca. 80 C and higher when I do work.
So I decided to Install SMC Fancontrol, however there is a big problem I can download it fine, I unwrap the zip fine and I can open the application. However as soon as I type in my password nothing happens. Its really frustrating because I cannot do anything I cant even delete it as it apparently is still running.
I have problem with mail application. I cannot get Gmail to work with it, I don't know why. I tried and nothing, I remove it and try again and same thing. It's written: The Gmail IMAP server [URL] is not responding. Try checking the network connection, and that the server name is correct. Otherwise, the server might be temporarily unavailable. If you continue, you might not be able to receive messages. I have already hotmail, and it works without problem. I even enable IMAP server at the gmail when I go through website directly. I am using MAC OS X. Mail application is is 4.2 version.
Have a new iMac (last years) with 10.5 on it. My email worked normal before I transferred Applications, files & etc from my old G4 with 10.4.
Now I can only get to my email through through my Earthlink home page by logging in & etc. (a real pain just to check my email!)
If I try to use the email icon on the iMac dock I get the email line at the top of the screen , but email page does not open. I have to go to menu and click on "In" and the page opens up but does not download any email. Will not send from this location either. When I try to quit email it will not close. I have to force quit it.
Earthlink said to trash their "Total Access" as it won't work with 10.5. So when the iMac was working ok before the transfer of files I must have been using Apples Mail application. How do I get it working again? I looked all over Mail Help and Apple help and nothing seems to work. Safari works ok.
I had to shut down my Mac by holding the power button. My Mail application didn't like this and it asked me to re-download all of my messages again. I did this but now the message topics and message content are out of sync.
I.e. I click on a title and the message is completely different.
Without wiping all of my e-mails is there someway to correct this with a refresh?
The DVD won't work either with DVD-films, Application DVD or music CD.  I have tried a lens cleaner disc but it will not work. The disks is "spinning around" for a while and then they ejects.  What to to? Reisnstall Mac OS?
I've currently got an early 2009 iMac, 2.8Ghz Core 2 Duo and 2GB of RAM. How would a base 11.6" MacBook Air compare to my iMac, occasionally using Adobe CS5 applications for light work on PhotoShop, Premier Pro and After Effects? Or would I be better off waiting for the MacBook refresh for something more powerful?
I have installed the beta of Google Chrome but is unable to select "Create application shortcut" (not so sure if its the correct words, because my installation is in Swedish)
The option is there to select but is greyed out (disabled).
PHP version 5.3.3 seems installed. But when I attempt to open php pages the browser opens them as text. It seems that I must edit the httpd.conf file to actually enable php. I changed the permissions on the file with sudo chmod ug+rw for httpd.conf. TextEdit still doesn't allow me to change it. It's saying that I don't have permission to write to that folder. I changed the permission the /etc/apache2 and that didn't help. What must I do to be able to modify httpd.conf and enable php support? Is there a different way to enable PHP? I am aware that MAMP is an option. But I should not have to use that option if php is available in apache.
What i am trying to do is create a program that lets the user have a small conversation with the computer but i don't want to use "else" and list the possible inputs seperatley and have to write the same thing over and over again. does anyone know of a way i can list possible inputs together and have them lead to the same result?
I probably already have the answer to this question myself but I wanted to make sure, and also have a follow-up query based on the responses.The system board was replaced last year after a nasty scrap between a cup of black coffee and my MBP (you will have immediately deduced who won).Today I noticed that many of the plist and plist.lockfile files within my Library/Preferences/ByHost folder have duplicates, albeit with different UUIDs in the filename. The dates pretty much tie up with when the system board was replaced so my assumption is that the UUID changed with the new hardware.
Q1) Would someone be so kind as to verify my assumption, or make a loud raspberry if my assumption is erroneous?
On the basis that the response from our wonderful community is: "Your assumption is correct Livebox, you have not gone mad, and you may rest-assured that the world is at peace (for now)", my additional question(s) are:
Q2a) Is it safe to delete ALL plist and plist.lockfile files that sport the old UUID?
Q2b) Is it safe to delete ONLY those plist and plist.lockfile files that sport the old UUID AND have a new version that sports the new UUID?
Info: MacBook Pro (17-inch Early 2008), Mac OS X (10.7.3), 4GB RAM - GeForce 8600M (512MB) GT
Is there such thing as an 'and if' statement? What I'm trying to do is the following: set var1 to 1st text item of theMessage as text set var2 to 3rd text item of theMessage as text If var1 is "help" and if var2 is "" (blank)then do something end if.