|
|
Open several apps and docs with a double-click
I don't get it. Admittedly, as someone who does not use Terminal or write AppleScript code, I still found the hint interesting. So I tried it. I opened Tex-Edit Plus, entered "netstat -na | grep 548" to see who is logged into my machine, saved it as "xyz.command" on my Desktop and made sure it was as a text document, opened Terminal, typed "chmod 774 ", dragged xyz.command into the Terminal window, pressed Enter, then quit the Terminal. I then double-clicked on xyz.command and all that occurred was that TextEdit opened the document and that was it. Nothing got executed. What am I missing?
don farrar's .command file
I strongly suspect you have a .txt or other extenstion that is hidden. I don't have TE+ but TextEdit (OS X) worked fine for me. I made a new document, set it to plain text (Format menu), and saved it as test.command. When I tried saving it as such, it asked me if I wanted to postpend .txt or use .command. If TE+ doesn't ask, just double check the extension via the Finder. The resultant icon looks like double terminal windows.
applescript & starting apps
activate will not only start an application, but it will also foreground it (or just foreground it if it is already running). I prefer using
which will start the app in the background and I can click on it when I see fit. --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|