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
  • IN-Frequently Asked Questions About PsyScript

    (shamelessly based on the E-Prime FAQ about nonexistent Mac versions :-) 

    1. What is PsyScript?

    2. What are the advantages over existing products?

    3. What are the minimum/recommended computers?

    4. Can I get a demo?

    5. When can I buy PsyScript?

    6. Can I be a Beta Test Site?

    7. How much does PsyScript cost?

    8. What kind of technical support is available for PsyScript?

    9. Will it run on Intel processors?

    10. Can I interface with external devices?

    11. What sound and image file types are supported?

    12. Is there copy protection?

    13. What do the licenses mean?

    14. What is the cost of future cross- or upgrades?

    What is PsyScript?

    PsyScript is a free application for doing psychology experiments.

    What advantages does it have over the existing products available?

    Intuitive event script

    Just learn a dozen 1 and 2-letter mnemonic codes. Experience shows that these are easy to learn and teach. For instance to show the phrase "hello world" at the top left of the screen, wait half second, erase them and show a picture of a lion in the centre of the screen, you say:

    tell application "PsyScript"
       
    do trial " 'hello world'(50 100) #500 !e @lion "
    end tell

    Help List

    Help list for free support (Subscribe now)

    Consulting help available if needed

    English Syntax

       set background color to black

    Object Model

    Fully leverages the mac-standard AppleScript language: a full object oriented language supported into OS-X and beyond.

    All aspects of PsyScript are object-based so you can literally say

       get every key whose noticed is true
       
    get pupil size of every eyelink sample whose timestamp > 1005
       
    tell staircase to update without correct given duration:10

    Syntax checking & highlighting

    Script Editor checks your syntax for correctness.

    The program structure is made visible with pretty-printing that you control

    Advanced Control structures


       repeat with thisStim in {"dog", 2, "cat", "rabbit", "hello"}
          
    do trial trialString given {thisStim}
       
    end repeat

    Access to all the scripting additions (Osaxen)

    These are very powerful. commands exist to format HTML reports, parse text with GREP, etc.

    Access to other scriptable Applications

    You can ask Apple's URL services to ftp experiment results to an internet database or e-mail them to yourself. You can do powerful processing of the results in Excel automatically, make graphs etc. All without human intervention: we have saved untold hours of work with these features.

    Hardware

    In addition to standard mouse and keyboard input, PsyScript supports:

    PsyScript Pro has full ethernet control over the SR EyeLink Video eye tracker

    What are the minimum and recommended machine requirements?

    A Power Mac with OS 8.5

    Can I get a demo?

    ;-) you got the real thing, baby.

    When will it be available for sale?

    Never: it's free.

    How can I get involved as a Developer?

    Talk to me. If you can code yourself, then you can have access to the source, if you want a feature added then we can do this for a modest fee.

    How much will it cost?

    umm, it's free.

    What kind of technical support is available?

    All your fellow users via an e-mail server list (look at the top of any page on this site)

    If you need more intensive consulting or support, this is available for free or if you want entire experiments written and analysed, then for a fee.

    Will PsyScript run on anything but a Macintosh?

    No. Never will either ;-) (unless of course someone else ports the code and then away you go with best wishes).

    Can I interface with external devices?

    Yip. You can write to a serial port (or USB-serial adaptor). I use this for EEGsynchronisation and talking to the Contact Instruments skin conductance device.

    PsyScript also talks to the ActiveWire card - a $US 59 solution for msec response timing and digital I/O.

    PsyScript can control the SMI Eyelink tracker over ethernet.

    I am keen to grow this side of PsyScript, so let me know what you need.

    What types of sound and image files are supported in PsyScript?

    Pretty much anything: jpg, mpg, PICTs, SNDs, text, mov - anything that QuickTime will run.

    What type of copy protection scheme is implemented for PsyScript?

    Absolutely none. PsyScript is here to stay for free.

    What types of licenses are available?

    PsyScript is released under a version of GPL. This means that it is free, can never be taken back from you, and you own the right to hack the raw source code however you want, including selling it, as long as you make available any changes back to anyone who wants them.

    What is the cost to upgrade from other Applications?

    Nothing: so download it now and have go - maybe it is just what you need to get your next exciting experiment going now!

    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