Hi Louie, You wrote: > Hi all, > I have a script in > ~/library/scripts/Applications/Safari/ > > I remember that there was some talk on how to set a key stroke to > activate these scripts. Could anyone tell me how to do this?
I just ran a search on the old archive by typing in "keyboard shortcut AppleScript" and the following link popped up as the first answer: http://www.mail-archive.com/discuss%40macvisionaries.com/msg48097.html (Re: Apple Script assignment) It gives a quick description of how to assign keyboard shortcuts for AppleScripts using the "Keyboard Shortcuts" tab of the "Keyboard & Mouse" menu of system preferences, and has links to two other archived posts that give detailed instructions of how to do this for two different specific examples. You can just look at the second link, since you don't need the excruciating detail of how AppleScripts work that is included in the first link. Alternatively, you could have done a search on "creating shortcuts" and gotten to Anne's instructions on creating shortcuts as the second result in the list (the first being your post about Spark). If you read down the thread with Control-N twice, you'll see my comments supplementing Anne's instructions with the note to make sure that you assign shortcuts when the applications that use them are closed -- and why this is required. I keep URL links to the Mail Archive pages for both the old list at: http://www.mail-archive.com/discuss%40macvisionaries.com/ and the current list at: http://www.mail-archive.com/macvisionaries%40googlegroups.com/ in my Dock. You can make these links, which are called "webloc" files (short for web location files) with an app called Weblocmaker that is completely accessible. There's a simple GUI interface that allows you to type or paste in the URL you want to link, enter a name for the location, and then use a pop up button to choose whether you want to create a Mac Web location (webloc file), a Windows Web location (URL file), or both. The created files show up on your Desktop with the names you assigned: name.webloc or name.url. You can mail people these files as attachments. (If they are using Windows, send them the name.url file.) When you open the file (e.g., with VO-Space, Command- O, double-click with VO-Shift-Space, etc.), the web site opens in your browser. (In my Safari setup, the site opens in a new tab.) These files get generated when you drag and drop from the address bar to your Desktop. Like the software app that lets us put files and folders into the Dock without dragging and dropping, WeblocMaker is an accessible way for VoiceOver users to create these kinds of files. It works for both Tiger and Leopard and runs on both PowerPC and Intel Macs (through Rosetta support for PowerPC software in Leopard). How to get WeblocMaker WeblocMaker was written for the PowerPC Macs, and the original distribution sites are no longer active. (It used to be available as freeware through sites like MacUpdate at: http://www.macupdate.com/info.php/id/16018 but the web site for Geke Software, the site that offered the app, is no longer in service.) You can still download it from the Internet Archive archive backup of the original distribution site. You should first have either Stuffit Expander or the Unarchiver installed on your machine. I recommend using the Unarchiver, which handles most archive file formats used by other operating systems (e.g. tar, zip, rar, etc.) that aren't automatically expanded by your default Mac setup. 1) Get the Unarchiver from: http://wakaba.c3.cx/s/apps/unarchiver.html 2) Go to this web page: http://web.archive.org/web/*/http://www.levinvideo.com/jalstuff/geke/Software/WeblocMaker/WeblocMaker.tar.bz2 (This is a single string with no spaces that begins with "http:" and ends with "bz2") If you have difficulties because the string is too long, do this in two steps: 2a) First go to: http://web.archive.org/web/ 2b) Tab to the text edit box and paste in: http://www.levinvideo.com/jalstuff/geke/Software/WeblocMaker/WeblocMaker.tar.bz2 and press return 3) You'll be at a page titled "Internet Archive Wayback Machine". Use item chooser menu (VO-I) and press "o c t" to find "Oct 20, 2006 link". That's the date the site was archived. Either carriage return or press VO-Space to go to this link. 4) Route your Mouse Cursor to your VoiceOver Cursor (VO-Command-F5) if you do not have your Mouse cursor set to track your VoiceOver Cursor. If you are using an updated version of Safari such as the Safari 4 beta or a recent WebKit nightly build, you should be able to use VO- Shift-M to bring up the contextual menu and choose the option to "Download linked file". If you don't see this menu option, you will need to either control-click to bring up the link menu and choose "Download linked file" or else option-click to download the file. "Control-click" means holding down the control key while you click the trackpad key of your laptop, a button on your attached mouse, or press the "5" key on a numeric keypad if you are using Leopard with NumPad Commander turned on. Similarly, "Option-click" means holding down the option key while you click with trackad, mouse, or "5" key of a numeric keypad with NumPad Commander activated. 5) Navigate to your Downloads folder to the downloaded file, WeblocMaker.tar.bz2.tar and open the file in Finder (e.g. with Command- O, Command-Down arrow, or by clicking with VO-Shift-Space). It should unpack into a folder named WeblocMaker in the same directory. Expand the folder with VO-backslash (or, if you are not using an English language input keyboard, after interacting and selecting the WeblocMaker folder, bring up the VoiceOver Commands Menu with VO-H twice; select "Toggle Disclosure Triangle" and press return to expand the folder). Arrow down to the WeblocMaker app, then copy it (Command- C) and paste it into your Applications folder (Command-Shift-A to go to Applications; Command-V to paste). 6) Try launching WeblocMaker and creating a Webloc file, which you can find on your Desktop If this works, you can send the WeblocMaker folder and the WeblocMaker.tar.bz2.tar file to the trash. Put a webloc file in your Dock This is a really useful way to access web sites that works as an alternative and complement to bookmarks. I keep webloc files pointed to the old and new Mail Archive sites for the MacVisionaries list. I select the webloc file I've created on my Desktop and use the Automator workflow to put items in the dock from Tim Kilburn's VoiceOver Downloads page at: http://homepage.mac.com/kilburns/voiceover/downloads.html to put links to these webloc files in the Dock. (I usually move the files to a folder in my Documents folder first, before using the Automator workflow because I like to keep my Desktop clean.) Then, when I want to do a search of our archives, I move to the Dock (VO-D), and navigate to the webloc files. The old archives is named "discuss" and the new archives is named "macvisionaries", so I either type "d i" or "m a c", or I use my arrow keys to navigate. I've found that Fn+Down arrow will move you to the three sections of the Dock (Applications, Files & Folders, and Trash), much as VO-M moves you through the three sections of the menu bar (Application menu, Status menu, and Spotlight). Using VO-Space on a webloc file in the Dock will open the Mail Archive page in a new tab in Safari, and I can just press tab and enter my search terms. This is different from using the Command-1 through Command-9 shortcuts for the first 9 bookmarks on your Safari bookmarks bar, because the webloc location opens in a new tab -- it doesn't replace the page you were viewing. Another really neat feature of webloc files is that you can mail them as attachments to your friends. Also, if you copy the file and open it with TextEdit (instead of the default, which is to open with Safari), you can change the URL inside the file. Rename the webloc file and you can use the second file for another website -- even if you don't have WeblocMaker! Finally, if you want to track the accessibility of web pages in different browsers, you could make copies of the file but rename them and use Finder to change the browser that is use in "Open with". Then you could check differences in opening the same page in Safari and WebKit, or in Opera, if you're monitoring advances in accessibility. Sorry for the long post. I've mentioned WeblocMaker a few times before on list -- starting way back when you could still download the application from the MacUpdate site. It's one of the posts that has always gotten buried. I hope that a few people -- maybe Louie and others -- will find this useful. Cheers, Esther --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to macvisionaries@googlegroups.com To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en -~----------~----~----~----~------~----~------~--~---