Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open several apps and docs with a double-click' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open several apps and docs with a double-click
Authored by: donfarrar on May 18, '04 10:07:05AM

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?



[ Reply to This | # ]
don farrar's .command file
Authored by: pecosbill on May 19, '04 10:30:16PM

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.

---
Pecos Bill



[ Reply to This | # ]
applescript & starting apps
Authored by: pecosbill on May 19, '04 10:36:08PM
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

tell application "MyApp"
 launch
end tell

which will start the app in the background and I can click on it when I see fit.

---
Pecos Bill

[ Reply to This | # ]