Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

running FM10, I recently pasted an updated script into scriptmaker using a single line "Perform Applescript". It ran for years without a problem, but now I get an error "Parameter is not an object specifier." Why did I get this and how do I get past it? Thanks for any help.

  • Newbies
Posted

Sorry, didn't realize that mattered. It extracts DB info and creates a pages letter. The script itself runs as always while debugging in script editor and the error comes up immediately without launching the script, so I assumed that it was a FM problem as compared to a problem with the script itself. I have a few dozen of such scripts embedded into scriptmaker that way, but this is the first time that this message has ever come up.

  • 9 months later...
Posted

I'm equally curious as to this issue, as I just got it myself today.

The script I have is a combination Applescript which prompts for a file location, then copies the file to an afp drive on a local server.

Posted

Well it pretty easy to make such an error, if you try this:


tell application "FileMaker Pro Advanced"

	first item of layout 1

end tell





Will you get it right away, the cure is to put it either this way:





tell application "FileMaker Pro Advanced"

	layout 1

	first item of result

end tell





...or this way:





tell application "FileMaker Pro Advanced"

	set aVar to layout 1

	first item of aVar

end tell

This means you need to build a set of references to all elements in your object before doing any slection or re-organization of these, "result" is returning such a set of references if you not should wish to build a new variable.

--sd

This topic is 5462 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
×
×
  • Create New...

Important Information

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