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


Click here to return to the 'Launch Terminal commands via Finder filenames' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch Terminal commands via Finder filenames
Authored by: jimphelps on Feb 26, '03 11:32:16AM

I get an error message:

[dyn-19-81:~] jphelps% /Users/jphelps/Desktop/ls\ \~jphelps; exit
/Users/jphelps/Desktop/ls ~jphelps: exec: $: not found
logout
[Process completed]



[ Reply to This | # ]
Hmm...
Authored by: robg on Feb 26, '03 12:20:04PM

What's the name of the file when you view it in the Terminal? Looks like it might have an extra backslash in it or something...

-rob.



[ Reply to This | # ]
Launch Terminal commands via Finder filenames
Authored by: JohnnyMnemonic on Feb 26, '03 10:57:13PM

I get much the same looking error:

[Tycho-iceBook:~] md% /Volumes/BigPart/Users/md/Desktop/top.txt; exit
/Volumes/BigPart/Users/md/Desktop/top.txt: exec: top.txt: not found
logout
[Process completed]

Hm.



[ Reply to This | # ]
Launch Terminal commands via Finder filenames
Authored by: JohnnyMnemonic on Feb 26, '03 11:11:56PM

Doesn't like files created using TextEdit; following the same process, but with pico, works fine. Probably because textedit appends an extension to the title, invisible or not--whereas you can strictly dictate the name in pico etc.

There may be another reason, but pico works for me.

Cool hint. Wonder what the max scriptable length is? Could make an eay way to make startup scripts--select these "applets" if you will in the "launch on login".



[ Reply to This | # ]