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


Click here to return to the 'Open multiple Microsoft Remote Desktop sessions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open multiple Microsoft Remote Desktop sessions
Authored by: jtrott on Jul 13, '03 08:21:08AM
Nice script, but you were making it hard for yourself.
Check out this slightly modified and much smaller version:
property pathtoRDC : ""

on run {}
	if pathtoRDC is "" then
		set tempPath to (choose file with prompt "Please locate Remote Desktop Connection..." of type "Application") as text
		set pathtoRDC to POSIX path of tempPath
	end if
	do shell script "/System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp \"" & pathtoRDC & "\" > /dev/null 2>&1 &"
	delay 2
	tell application "System Events"
		set frontmost of last item of application processes to true
	end tell
end run
Apple includes a nice 'POSIX path of' command, why not use it?
Keep up the good scripting work :)
JT

[ Reply to This | # ]
Open multiple Microsoft Remote Desktop sessions
Authored by: jcsheltonusa on Jul 14, '03 10:53:35AM

Thanks for the help on the path. Comments like this one are the reason I put this out. I knew RDC Launcher could be better than it was, and I knew people would find it valuable as is.

Thanks
Chris



[ Reply to This | # ]