Jump to content

Is there a use for the get(Scriptname) function?


This topic is 6478 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I figure there must be something cool to do this this but ... don't I already know what the name of the script I am in is? ... or does it return the parent script name so you know where you came from ... but that is what passing paramenters is for.

Anyone know a great trick for this function?

Charles

FileMaker Version: 7

Platform: Windows XP

Link to comment
Share on other sites

in the past I would use it as a variable. Same script duplicated many times w/ a different Variable. Then I would parse the script name to do thing. I just build the master script once. But as you mention now that we can use parameters I am scratching my head as to what I would use this for?

Link to comment
Share on other sites

I have a file that has a number of scripts that are scheduled to run every 20 min. If I have an error I send an e-mail to myself with the scriptname in the body of the email and details about were the error occured. Helps me track down the error.

Brian

Link to comment
Share on other sites

I used this in FileMaker Pro 6 in the access priviliges. e.g. Delete "by calculation".

If (patterncount(Status(currentscriptname);"DELETE"); 1 ; 0 )

So when a user is logged in, he can only delete a record by a script with "DELETE" in his name.

You can also use this in FileMaker Pro 7, but I guess that in most situations the option "run with full access privileges" will overrule this technique.

Koen

Link to comment
Share on other sites

This topic is 6478 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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