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


Click here to return to the 'Use AppleScript to create drag and drop icons for shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use AppleScript to create drag and drop icons for shell scripts
Authored by: ClarkGoble on Dec 25, '03 01:09:15PM
Just one other tip. If you go to Get Info for a particular file you can associate all files of that kind with any application including these drag and drop Applescripts. This is a great technique for associating files with programs you installed with Fink. You can also do cool things like automatically convert postscript files to PDFs and open them with Preview. (That hint was one sent in a few months back)
on open input_file
	
	do shell script "export PATH=\"$PATH\":/sw/bin;ps2pdf " & POSIX path of input_file & " /tmp/.psview.tmp.pdf"
	do shell script "open /tmp/.psview.tmp.pdf"
	
end open


[ Reply to This | # ]