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


Click here to return to the 'Script2TinyURL' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script2TinyURL
Authored by: mark hunte on Mar 04, '05 07:34:46PM
I didn't even know transmit was in v3, but will down load and try Thanks for the iDisk hint.

P.s The tiny script gave me an idea. I have two scripts that copy and paste scripts into script editor or a shell script from the front most app.

in the tiny Url script I noticed there is a url call for script editor. Which if used in my script might work much better. the line is

 applescript://com.apple.scripteditor?action=new&script=
so I set it in to my script and cut out all the tell script editor do this and that stuff. Which seems to work ok
set front_app to (path to frontmost application as Unicode text)
set name_ to name of (info for (path to frontmost application))
tell application front_app
	activate
	tell application "System Events"
		keystroke "c" using {command down}
		delay 1
		set this_text to (get the clipboard) as string
		open location "applescript://com.apple.scripteditor?action=new&script=" & this_text
	end tell
end tell

---
mh

[ Reply to This | # ]