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

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

Recommended Posts

  • Newbies
Posted

Can I have arguments in a Finder script function? This script doers what I need done but I have to define the $trip and $pref manually. It would be really nice Finder would use that arguments. If I specify the arguments in Finder they show as text.

Show All Records

Set Variable [ $trip; Value:1 ]

Loop

Set Variable [ $pref; Value:1 ]

Loop

Enter Find Mode [ ]

[ Pause ]

#How can I make $pref and $trip be arguments to the Find?

Perform Find [ ]

Enter Browse Mode

Pause/Resume Script [ Indefinitely ]

Set Variable [ $pref; Value:$pref + 1 ]

Exit Loop If [ $pref ≥ 7 ]

End Loop

Set Variable [ $trip; Value:$trip + 1 ]

Exit Loop If [ $trip ≥ 15 ]

End Loop

Posted

All you need to do use Set Field like so:

Enter Find Mode

Set Field[ whatever; $pref ]

Set Field[ something; $trip ]

Perform Find

Don't specify any arguments for the Enter Find or Perform Find steps.

I don't see what it accomplishes to perform these Finds one after the other, though. What are you trying to end up with?

(PS: I'm glad you included your actual script, because your question was a little hard to follow. (Finder? That means something else on a Mac.))

  • Newbies
Posted

Thanks. I had a hard time with the Set Variable using ScriptMaker.

I am coordinating field trips for a conference. Each group is allowed 6 preferences and there are 14 trips. With the script it is now easy to know how many groups and people are in each trip/preference combination.

An array would be perfect. Ah for Fortran or assembly code.

This topic is 6067 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.