Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi all,

I can't figure out how to edit the default script, i.e. change the default script to something that's useful to me as a default script. Anyone out there know how to do this?

Thanks in advance!

-Kent

I don't think you can! I hope that I'm wrong.

What is the "default script"? AFAIK, there hasn't been a default script since version 5 or 6. You could of course make yourself one and duplicate it each time you need one.

In FM9, they reintroduced the Default Script. Go to Scripts window and don't click New, but choose from the popup.

Ah. Interesting - and quite useless. No wonder I forgot all about it, even though I must have seen it every time I needed a folder or a separator.

Yep, quite useless. Like the new Status Area...

I wouldn't call that useless, just half-baked. Come to think of it, so is the default script thing. If it were customizable, it could be useful - as evidenced by the OP.

That's just it. Give me both, but let me control every aspect. How about a default layout as well? I promised I wouldn't join in the ranting...

In FM9, they reintroduced the Default Script.

That was really in FM9 ?

Because my FM9 Adv. has not that option.

Am I losing it?..I can't check on Win right now, and it's not on Mac in FM9. Maybe it is FM10 only. Sorry for that.

The good news is I am not as senile as I thought. The bad news…

It was reintroduced in 10.

Maybe someone missed it, and was really noisy about it?

It's probably useful for about the first 15 minutes in a beginner user's experience with FileMaker, as a sort of Hello World example.

It was reintroduced in 10.

Maybe someone missed it, and was really noisy about it?

It's probably useful for about the first 15 minutes in a beginner user's experience with FileMaker, as a sort of Hello World example.

I think it could be useful for much more than that. Many advanced developers have script templates that include comment regions and common variable declarations. We really should be able to control the default script contents.

For clarification this is what this is referring to:

I agree rather pointless - it's so obscure that its not obvious, only if this was included perhaps as a hook into some future super advance developer feature - who knows.

For clarification this is what this is referring to:

I agree rather pointless - it's so obscure that its not obvious, only if this was included perhaps as a hook into some future super advance developer feature - who knows.

I'm aware of what it does now. It just seems like we should be able to write our own script, as I described, and declare it as our default script.

Edited by Guest

  • Author

Hi again everyone,

I'm not getting email notifications on this topic for some reason, so I thought no one had replied until I just checked back in at this webpage.

I messed around trying to discover ways to edit the default script and I found that the default script gets rewritten according to what you last did manually. As an example, if you do a find and then a sort, and then you create a new script based on the default script, those most recent find and sort steps will be in the new script.

It would be nice to see something truly editable for creating a custom template.

Thanks for the replies.

-Kent

  • 1 year later...

Hi,

I know it's quite an old script, but I did a workaround using "AutoHotkey" to create my own default script with keyboard shorcuts.

If you are interested here is my autohotkey script which add default steps that loops through records and exit the loop after the last one. This script is triggered using [CTL]+[ALT]+[P].


;Auto enter steps to create a script which loop through records.

^!p::

   WinWait, Edit Script "New Script" (maisem), 

   IfWinNotActive, Edit Script "New Script" (maisem), , WinActivate, Edit Script "New Script" (maisem), 

   WinWaitActive, Edit Script "New Script" (maisem), 

   Sleep, 100

   Send, {SHIFTDOWN}{TAB}{SHIFTUP}comment{ENTER}{SHIFTDOWN}{TAB}{TAB}{SHIFTUP}comment{ENTER}{SHIFTDOWN}{TAB}{TAB}{SHIFTUP}comment{ENTER}

   Sleep, 100

   Send, {SHIFTDOWN}{TAB}{TAB}{SHIFTUP}fr{ENTER}{SHIFTDOWN}{TAB}{TAB}{SHIFTUP}loo{ENTER}{SHIFTDOWN}{TAB}{TAB}{SHIFTUP}gg{ENTER}

   Sleep, 100

   Send, {TAB}{DOWN}{DOWN}{DOWN}{SHIFTDOWN}{TAB}{SHIFTUP}{SPACE}{SHIFTDOWN}{TAB}{SHIFTUP}{UP}{UP}{UP}{UP}{UP}

return

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.