Jump to content

  •  

Photo

Resume paused script


  • Please log in to reply
8 replies to this topic

#1 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 13 June 2008 - 10:47 AM

If a script is paused indefinitely, and I'm running a second script in the meantime - how can I go back to the first script and resume it where it was left without using the FM native Continue button in the status area?
  • 0

#2 mr_vodka  Candy is Dandy... But Liquor is Quicker

mr_vodka
  • Moderators
  • 5,917 posts
  • LocationOld Bridge, NJ
  • FM Application:12 Advance
  • FMGo:iPad
  • Platform:Windows XP
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 9d 7h 4m 12s

Posted 13 June 2008 - 11:46 AM

Well you can have a button that resume the current script. When you go to select a script, under the options, change it from the default to Resume.
  • 0
- John Ahn
Life3D Studios
FMfunctions.com, Co-founder

#3 fabriceN  master

fabriceN
  • Moderators
  • 337 posts
  • LocationBrussels, Belgium
  • FM Application:13 Advance
  • FMGo:iPhone / iPod Touch, iPad
  • Platform:Mac OS X Snow Leopard
  • Skill Level:Expert
  • Certification:8, 9, 10, 11, 12
  • Membership:TechNet, FileMaker Business Alliance, FIleMaker Platinum Member
  • Time Online: 18h 26m 47s

Posted 13 June 2008 - 12:01 PM

Yes, the button option is the solution.
One of the dreams I have is an option for the Exit script[] step that would control paused script.
  • 0
Fabrice Nordmann
Certified FileMaker Developer 8, 9, 10, 11, 12

Posted Image
A whole range of services for FileMaker developers and users

QuickExpertise, when a forum is not enough. Don't waste hours on a problem anymore!
Coaching, to help your projects progress smoothly.
FileMaker Hosting, go for unlimited bandwidth, customized rates and 24/7 support.

my custom functions at FMfunctions.com

#4 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 19 June 2008 - 11:41 AM

Tell me about it! That's exactly what I wish I could have...

Let's say you paused the script, and you have two buttons you place on screen for the user to choose from (either continue, or exit)... if I could AT LEAST PASS A PARAMETER to continue one way or another!

Sometimes I just wanna throw FM out the window...
  • 0

#5 comment  consultant

comment
  • Members
  • 24,086 posts
  • Time Online: 325d 54m 25s

Posted 19 June 2008 - 12:16 PM

Where is the difficulty in doing that? (I don't mean throwing FM out the window.)
  • 0

#6 Vaughan  Mostly Harmless

Vaughan
  • Moderators
  • 10,294 posts
  • LocationSydney, Australia
  • FM Application:13 Advance
  • FMGo:iPhone / iPod Touch, iPad
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet
  • Time Online: 4d 9h 48s

Posted 19 June 2008 - 04:11 PM

Or, structure the original script into two parts: script A and script B where script B is the part that comes after the pause:

Script A will be:


Pause/Resume []
Perform Script [Script B]

Instead of trying to resume script A, just kill it and run script B.
  • 0
Vaughan Bromfield
Sydney, Australia

Please post questions to the Forum, not directly to me. Back-up your files before making changes!

Whenever I hear the term "popular culture" I reach for my Iridium Q-36 Space Modulator.

#7 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 05 July 2008 - 11:51 AM

You're right, Comment - of course!

I just realized that if I wrap all of the code into parameter conditions, I CAN do that. The scripts doesn't "resume" where it left off, but it then doesn't matter if it starts at the beginning again, because only the part matching the new parameter is being executed.

:-)
  • 0

#8 artvault  apprentice

artvault
  • Members
  • 248 posts
  • LocationSwitzerland
  • FM Application:11 Advance
  • Platform:Cross Platform
  • Skill Level:Intermediate
  • Certification:8, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 6h 22m 54s

Posted 05 July 2008 - 11:52 AM

Vaughan, that's a great idea too. Thank you!
  • 0

#9 d.justins  newbie

d.justins
  • Newbies
  • Pip
  • 1 posts
  • FM Application:11 Advance

Posted 16 August 2010 - 01:02 PM

It would be a good idea, however, it is useless (well, more like extremely tedious) to do this if you want to use the "other script" (the script you paused the first one in order to run) along with multiple scripts that returns conditional data.

In my case, i want to run a script that
- defines attributes according to the button pushed
-pause the script to run a script that opens a custom "custom dialogue" box (with drop-downs and options)
-return to the original script with parameters from the first part of the script added to the second script and use those to generate a report.

I mean, it can be done, but it is going to be amazingly more difficult than it would have to be with a pause and resume situation (something like a customizable custom dialogue box) or a conditional resume button.
  • 0




FMForum Advertisers