Red Sweater Forums
Discussions
Activity
Sign In
Edit Discussion
You can either ask a question or start a discussion. Choose what you want to do below.
Ask a Question
Start a New Discussion
Ask a Question
Start a New Discussion
Discussion Title
Category
FastScripts
Hello - I am new to both Applescript and Fastscript so I may be simply doing something silly. I wrote a simple script to keystroke my email address and then using fastscripts linked it to the shortcut option-F2 (Note: I also tried apple-F2). The script is set target_app to (path to frontmost application as Unicode text) tell application target_app to activate tell application "System Events" tell process target_app to keystroke "email@email.com" end tell (I changed the actual string it's sending for privacy :) When I tried to invoke the script while in Firefox (at google.com) with the cursor placed in the search box waiting for input for example, it proceeded to do a very strange series of commands first putting the firefox window in the dock, then bringing up windows of page source for the web page, etc. etc. (that is what option-F2 did, apple-F2 filled in the text box with some alternate character set). It also did strange things when the cursor was waiting on a "stickies" note, etc. so I don't think it had anything to do with Firefox or google. I thought that the sequence option-F2 and apple-F2 must already mean something; so I then changed it to activate when I pressed F3 instead. This is the weird bit - now it works wonderfully on F3, BUT if I press option-F2 or apple-F2 in the exact way I did before - NOTHING happens! I would have expected that if those codes meant something already, it would have had some effect. Also, my script is called "Fam address" and despite having it linked to F3 and it working properly now, it does not show the shortcut (F3) on fastscript's drop down menu on the menu bar at the top of the screen. All of my other scripts show their shortcuts on this menu. I have a screen scrape showing this if you would like it. I don't know if it makes any difference but I am on an 800MHz powerPC G4 iMac running Tiger.
Cancel
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Powered by Vanilla