PsyScriptIcon.png PsyScript: getting experiments done

$query\n"; } $result = mysql_query($database, $query, $connection) or die("ack! query failed: " ."
  • errorno=".mysql_errno() ."
  • error=".mysql_error() ."
  • query=".$query ); return $result; } $Base = "http://www.maccs.mq.edu.au"; $URL= $PHP_SELF; $connection = mysql_connect('localhost', 'tim', 'connect2'); if (!$connection) { print("Cannot connect to database. Call Tim.
    "); exit(); } $result=safe_db_query("Counters","SELECT * FROM Count WHERE Base='$Base' AND URL='$URL'", $connection); while ($row = mysql_fetch_row($result)) { $ChkBase=$row[0]; $ChkURL=$row[1]; $ChkCount=$row[2]; $Count=$ChkCount; } if ($ChkURL == ""){ safe_db_query("Counters","INSERT INTO Count VALUES ('$Base','$URL','0')", $connection); $Count=0; } $Count++; safe_db_query("Counters","UPDATE Count SET Number='$Count' WHERE Base='$Base' AND URL='$URL'"); $result=safe_db_query("Counters","SELECT * FROM Count WHERE Base='$Base' AND URL='$URL'", $connection); while ($row = mysql_fetch_row($result)) { $Base=$row[0]; $URL=$row[1]; $Count=$row[2]; } echo $Count; */ ?>hits
  • KEY FEATURES

    Completely Scriptable
    Does its job properly & leaves other apps to do their job properly.

    Minimum Mac

    PowerMac

    PRICING

    FREE!

    Frequently Asked Questions

    Infrequently asked questions

    ask me a question

    PsyScriptIcon.gif PsyScript is:

    • A complete scripting language: there are very few experiments that you cannot program.

      • I believe it is the most powerful and yet usable experimental tool available.
    • PsyScript is free.

      • If you want to change something -mail me and we may be able to make the change: It is for psychologists, by psychologists and will go in the direction that we want it to.

    Features

    • Show virtually anything on screen or via built in audio output.

      • Complete control over locations and timing (millisecond of course). Anything QuickTime can show, you can show (wav, mov, snd, aiff, PICT, jpg, png, GIF, mp3, mpg, etc. etc.)
    • Record responses from USB devices, built in micophone voice key, keyboard, mouse (including click-able hot-spots on screen).

      • Voice is great: you define the threshold visually, and PsyScript can also save the voice response to disk (you could subsequently do voice recognition on the stored responses.
    • Full Programming Language.

      • You can program anything in PsyScript. I think that there are no protocols you cannot implement because of logical constraints, only speed or equipment constraints.
      • PsyScript was based on ECL (experimental control language, originally developed at MIT and enhanced by Mike Tarr and Pepper Williams) but now uses new code written by Lawrence D'Oliviero, and Apple's amazing system-level scripting language AppleScript.

    This effectively turns the language you already know into a full object oriented language. What language is that? English ;-)


    tell application "PsyScript"
       
    set background color to black
       
    set word color to white
       
    set trialString to " '?stim'(50 100) #500 !e 'living??'"
       
    repeat with thisStim in {"dog", "cat", "clock"}
          
    do trial trialString given {stim:thisStim}
          
    do trial "'You pressed ?1 after ?2 msec'" given {get subject response, get reaction time}
       
    end repeat
    end tell

    What do you think will happen? Try it by typing this into Script Editor (find it using sherlock).

    Many applications are scriptable: in PsyScript you can control all of these. Scriptable functions include, the Apple OS itself, Web access, e-mail, file transfer (LAN or www-based).

    MACCS PsyScriptIcon.png Documentation Downloads FAQ Mailing List
    Last change:
    Advanced Search

    Applescript in a Nutshell : A Desktop Quick Reference

    AppleScript for Applications: Visual QuickStart Guide

    AppleScript For Dummies

    Applescript for the Internet Visual Quickstart Guide

    Applescript Language Guide; English Dialect

    Danny Goodman's Applescript Handbook