Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KurtangleTN

macrumors 6502a
Original poster
Apr 2, 2007
523
0
So i'm trying to make a script for quicksilver, so that I can reload my RSS feed program (Vienna)

I got this

tell application "System Events"
tell process "Vienna"
keystroke "r" using {command down}
end tell
end tell

Now this will reload (well do Command + R which is the hotkey for refreshing in Vienna) if it's the active window, how do I make it so that it switches to Vienna before?

Thanks
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
It'll be really annoying as the application will jump to the front but

Code:
tell application "your application name here"
	activate
end tell

will activate whatever application you put in the appropriate place.
 

KurtangleTN

macrumors 6502a
Original poster
Apr 2, 2007
523
0
It'll be really annoying as the application will jump to the front but

Code:
tell application "your application name here"
	activate
end tell

will activate whatever application you put in the appropriate place.
Ah ok, so I'm probably just better off leaving it as it is.. or just command-tabbing.

Thanks! :D
 

lancestraz

macrumors 6502a
Nov 27, 2005
898
0
RI
A better way is:
Code:
try
	tell application "Vienna"
		refresh all subscriptions
	end tell
end try
 

KurtangleTN

macrumors 6502a
Original poster
Apr 2, 2007
523
0
I run Panther, and Vienna 2.1.2.2110/2110

Maybe that could be doing something with it?

Man I regret not getting Tiger.
 

KurtangleTN

macrumors 6502a
Original poster
Apr 2, 2007
523
0
Code:
2007-05-16 19:40:11.830 Vienna[450] attribute terminology dictionary not found for attribute applescriptContainer in class AbstractObject in suite NSCoreSuite

2007-05-16 19:40:11.831 Vienna[450] attribute terminology dictionary not found for attribute applescriptContainer in class Folder in suite ViennaApp

2007-05-16 19:40:11.833 Vienna[450] No readable name in dictionary

Ok, this is what I got.

Thanks for the help again :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.