filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]

Copy Address

There's a super useful command in the modal table menu.

It's the "Copy Address" feature. When you select this command, the address of the object the cursor is pointing to gets loaded into the clipboard. Cooool.

However, this feature has two shortcomings.

  1. Only available when a table is the frontmost object (because it's in a modal menu.)
  2. Only works when the cursor is in a table object (because it uses table.getcursor () .)

What I wound up doing.

I put the Copy address command into my custom menu. This solves problem #1. I also added a command key, for convienence (Cmd-2, in my case).

And I used table.getCursorAddress (), a wonderful verb that works on ANY object. Here's the code:

clipboard.putvalue (string (table.getcursorAddress ()))

Suggestions for Userland

  1. Put the Copy Address command into the Edit menu or Main menu (or somewhere else where it's always accessible.
  2. Add a command key.
  3. Have it call table.getcursoraddress ().

As always, thanks!

Ideas & Issues
Site Outline

I&I Home
1998
  05
  Improving Javascript Support
  Featuring suites.jsl: A pageheader script for the <SCRIPT> tag.
  06
  Character Entities
  Make working with HTML character entities easy.
  Copy Address
  FileWriters Questions
  Ideas for discussion
  Navigating the ODB
  Making it easier to get around in Frontier
  Suite Info
  If you write suites, tell your users about yourself!
  07
  Binary Objects in Your Website
  Frontier needs to learn how to render binary objects
  Creating META tags
  How can I put <meta> tags into my Frontier web pages?
  Filemaker and Frontier
  Where can I find resources for scripting Filemaker with Frontier?
  Frontier Mailing Lists
  More signal, less noise
  08
  Comments on Fat Pages
  Good fatpage, bad fatpage
  Quiet Advances
  Userland continues to crank out new features, bug fixes.
  Render Table Memory Issues
  An easy fix to a problem with rendering huge websites
  12
  Rendering out to more than one server
  Filewriters should be able to see the adrPageTable

   
Back to I&I Home   >>  

Back to
the top

This is Phil's Frontier Scripting Site. San Francisco, CA
Copyright © 1996-98, Phil Suh. All Rights Reserved.
http://www.filsa.net/frontier/ii/1998/06/copyAddress.html
This page last built on 6/28/99; 11:07:09 PM

filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]