Bike
Bike
Bike
  • Bike
  • Getting Started
  • Why Bike?
  • Using Bike
    • Text Editing
    • Text Formatting
    • Row Types
    • Outline Editing
    • Outline Viewing
    • Using Links
    • Using Find Panel
    • Using Text Checking
    • Using the Choice Palette
    • Using Text Wrap
    • Using Focus Mode
    • Using Typewriter Mode
    • Using Full Screen Mode
    • Using Navigation Bar
    • Using Status Bar
    • Using Windows
    • Using Documents
    • Using Scripts
    • Using Shortcuts
    • Using Outline Paths
    • Using Software Update
  • Customizing Bike
    • Creating Scripts
    • Creating Shortcuts
  • Keyboard Shortcuts
  • Bike Compatible Apps
  • Software Credits
  • Glossary
Powered by GitBook
On this page
Edit on GitHub
  1. Using Bike

Using Scripts

Last updated 1 year ago

Use scripts to automate Bike and integrate with other apps. You can find existing Bike scripts on Bike's . This section shows how to run scripts that someone else has written. If you want to create your own scripts please see the section.

To try a script:

  1. Open the "Script Editor" application that comes with your Mac.

  2. Paste the following script into a new editor window.

  3. Make sure that the scripting language is set to "AppleScript". (Use View > Show Navigation Bar if no language selector is displayed at the top left of the document).

  4. Press the "Play" button to run the script. This script will create a new document named "Testing!". It deletes any welcome text that may be inserted into the document. Then it adds a "Hello" row to the document that contains a "World" row.

tell application "Bike"
  tell (make document with properties {name:"Testing!"})
    delete every row -- remove any welcome text
    tell (make row with properties {name:"Hello"})
      make row with properties {name:"World"}
    end tell
  end tell
end tell

To test a script given to you by someone else:

I recommend that you first close your documents and create a new test document before running the script. You want to be sure that the script does what you want it to do, before you run it on your real work!

To install a script in the system script menu:

Open Script Editor and choose Help > Script Editor Help. Search for the help section "Access your scripts using the Script menu". That will lead you through the steps of enabling and saving scripts into the system script menu.

You can also use or to run your scripts with assigned keyboard shortcuts.

FastScripts
Keyboard Maestro
extension wiki
Creating Scripts