Link to home
Start Free TrialLog in
Avatar of jayindy1
jayindy1Flag for United States of America

asked on

How to create a Mac OSX keyboard shortcut to open a simple text.rtf file

I'd like to be able to open my worknote.rtf file with keyboard shortcuts, for instance in XP I assigned something like ctrl-n to open my worknote.rtf file & ctrl-p to open my personalnote.rtf file.  I miss this, and I suspect there is an easy way to do this but from my 20 min google search ... no joy, so now I'm turning to the pros.  

My word processing software is Bean and I simply want to assign 2 or 3 keystrokes to open this simple worknote.rtf file that lives in a folder residing on my desktop.

I want focus on worknote.rtf, then use software associated with .rtf files (Bean) to open it.  I don't want initial focus to be application (Bean) that automatically opens 1, or more files from an application (Bean) assigned shortcut which I did discover how to do.
Avatar of Philip_Spark
Philip_Spark
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of jayindy1

ASKER

I was hoping for simple, this program is overkill, software must be enabled when logging in... for just 1 shortcut...maybe a script would be more efficient, but I'm not familiar with writing scripts, other suggestions?
here's how to do it with applescript

http://macdevcenter.com/pub/a/mac/2007/06/08/hit-and-run-launching-applescripts-with-keyboard-shortcuts.html?page=1

I'm playing with it I can record a script to open a text file, I'll try and figure out the keyboard  shortcut then supply a walkthrough.

Unless someone else pops up with one before me.
I opened script editor
recorded the open rtf file
saved script in my script folder
installed fastscript
it will let you make keyboard shortcuts for up to 10 scripts before purchasing (it's only $15 anyway)
you only need 2 shortcuts anyway

http://www.red-sweater.com/fastscripts

I then command clicked my script from fastscript menu to give it a shortcut.

the script runs fine as long as you don't change the location of your file.
PS This is how my script looked

tell application "Finder"
      activate
      open document file "bob.rtf" of folder "Desktop" of folder "philip_spark" of folder "Users" of startup disk
end tell
now you're talk'n...I take a good look tomorrow
Phil, ok I wrote a script (even added code to close active finder window), saved it to my script folder, I can double click on the compiled script, it works!.  

I downloaded fastscripts from redsweater, I see it on my desktop, however I don't see "Select the Create menu item from the FastScripts submenu."... how in the world do I run this fastscripts software??  I think it automatically loads when I boot.

I'm running 10.5.7 Mac OS X.

ASKER CERTIFIED SOLUTION
Avatar of Philip_Spark
Philip_Spark
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok Phil, I guess the question now is, how do you show all the icons (including fastscripts) in the menu bar??

I was able to move off (command key plus left mouse) a couple icons before, finally, my fastscrips icon came into view. I was able to assign a shortcut to my "OpenNote" file living in my "JayCreated" folder.

I'll award points here shortly.
I don't know how it appeared in my menubar, it happened I think after I'd first run it.

Are you using the free lite version?

You may find some answers here

http://www.red-sweater.com/forums/viewforum.php?id=3
This is a sweet program, I've also put a shortcut on a timestamp.  In my note file I like to time date stuff.

No I'm not using the lite version, in fact I think red sweater stated they are going to do away with the lite ver.

I've shortened the existing icons in the menu bar to make room for more, for instance I replaced my name in upper right with an icon of a bust, then I could reduce my time date display by removing the seconds, but I'm good for the moment.

Thanks again for the help.