Newbies glhein Posted April 13, 2008 Newbies Posted April 13, 2008 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
Fitch Posted April 14, 2008 Posted April 14, 2008 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 glhein Posted April 14, 2008 Author Newbies Posted April 14, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now