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


Click here to return to the 'automaitc "longnames" list' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
automaitc "longnames" list
Authored by: nick on Jun 27, '05 10:19:15AM

i figured out this one:

[code]
#!/bin/sh

exec osascript <<EOF
tell app "`ls /Applications/* | grep \.app | awk -F .app '{print $1}' | sed s/'\/Applications\/'/''/ | grep -i $1 | head -1`"
activate
end tell
[/code]
so i don't have to maintain the "longnames" list.



[ Reply to This | # ]