Hi All, The example in the documentation is bad - it redefines 'reverse' (which is fine), then attempts to use it.
The working version changes the name of the script (which is just a function) to 'reverse-selection' so it doesn't cause the error: (define-script <https://www.cs.utah.edu/plt/snapshots/current/doc/quickscript/index.html#%28form._%28%28lib._quickscript%2Fmain..rkt%29._define-script%29%29> reverse-selection #:label "Reverse" (λ <https://www.cs.utah.edu/plt/snapshots/current/doc/reference/lambda.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._~ce~bb%29%29> (selection) (list->string <https://www.cs.utah.edu/plt/snapshots/current/doc/reference/strings.html#%28def._%28%28quote._~23~25kernel%29._list-~3estring%29%29> (reverse <https://www.cs.utah.edu/plt/snapshots/current/doc/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Flist..rkt%29._reverse%29%29> (string->list <https://www.cs.utah.edu/plt/snapshots/current/doc/reference/strings.html#%28def._%28%28quote._~23~25kernel%29._string-~3elist%29%29> selection))))) I still think making scripts is easy and fun but I apologise for not testing the documentation. here is a script I just made (and tested); #lang racket/base ;;; License: MIT/Apache2.0 (require browser/external quickscript) (script-help-string "Racket Survey.") (define-script racket-survey #:label "Racket Survey (browser)" #:menu-path ("&News") #:help-string "Complete the Racket Survey now" (λ (str) (send-url "https://forms.gle/XeHdgv8R7o2VjBbF9") #f)) click new script in the menu and give it a name 'survey' this will create a file 'survey.rkt' in the user scripts folder paste in the above, save and click 'compile scripts and reload'. - you will find the script "Racket Survey (browser)" under 'News' in the scripts menu. There is still time to enter and prizes to be won. https://github.com/Quickscript-Competiton/July2020entries Stephen On Tuesday, July 28, 2020 at 4:59:26 PM UTC+1 Stephen De Gabrielle wrote: > There are still prizes. > It is easy and fun. > Make DrRacket do what *you* want. > > Check it out: https://github.com/Quickscript-Competiton/July2020entries > > Stephen > > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/66baaef5-6b7c-45cd-a399-818bac31d99en%40googlegroups.com.