Going Crazy trying to learn Revolution, Applescript puzzle.
Posted: Sun Feb 28, 2010 10:13 pm
Know a few computer languages, trying to grasp RunRev's. It says it supports Applescript, and I can only find one simi-good example. Logically, this should work, it populates the fields, but no script action. I've tried lots of variations trying to resolve, this looks like the closest to working (my opinion), but NOT! Why not?
See attachment
What am I missing?
~David
------------------------------------------------------------------------------------------------------------
on myAppleScript
put fld "myIMName" on Card "AlarmSettings" into fld "myNewIMName" on Card "AlarmStatus"
replace " " with empty in fld "myNewIMName" on Card "AlarmStatus" -- Attempting to remove blank spaces from field.
put fld "myIMBuddy" on Card "AlarmSettings" into fld "myNewIMBuddy" on Card "AlarmStatus"
replace " " with empty in fld "myNewIMBuddy" on Card "AlarmStatus" -- Attempting to remove blank spaces from field.
-------------------------------------------------------------------------------
put "tell application" && quote & "iChat" & quote & " activate" & cr & \
"log in service" && quote & fld "myNewIMName" on card "AlarmStatus" & quote & cr & \
"set the status message to" && quote & "Status Message" & quote & cr & \
"send " & quote & fld "myTimeField" on card "AlarmMonitor" &" "& fld "myDateField" on Card "AlarmMonitor" & quote & " to buddy "& quote & fld "myNewIMBuddy" on Card "AlarmStatus" & quote & cr & \
"send " & quote & fld "myAlarmMessage" on Card "AlarmStatus" & quote & " to buddy " & quote & fld "myNewIMBuddy" on Card "AlarmStatus" & quote & cr into tScript
do tScript as AppleScript
put tScript into fld "BigAppleScriptBox" on Card "AlarmStatus"
-------1----------2---------3---------4---------5---------6---------7---------8--------
end myAppleScript
See attachment
What am I missing?
~David
------------------------------------------------------------------------------------------------------------
on myAppleScript
put fld "myIMName" on Card "AlarmSettings" into fld "myNewIMName" on Card "AlarmStatus"
replace " " with empty in fld "myNewIMName" on Card "AlarmStatus" -- Attempting to remove blank spaces from field.
put fld "myIMBuddy" on Card "AlarmSettings" into fld "myNewIMBuddy" on Card "AlarmStatus"
replace " " with empty in fld "myNewIMBuddy" on Card "AlarmStatus" -- Attempting to remove blank spaces from field.
-------------------------------------------------------------------------------
put "tell application" && quote & "iChat" & quote & " activate" & cr & \
"log in service" && quote & fld "myNewIMName" on card "AlarmStatus" & quote & cr & \
"set the status message to" && quote & "Status Message" & quote & cr & \
"send " & quote & fld "myTimeField" on card "AlarmMonitor" &" "& fld "myDateField" on Card "AlarmMonitor" & quote & " to buddy "& quote & fld "myNewIMBuddy" on Card "AlarmStatus" & quote & cr & \
"send " & quote & fld "myAlarmMessage" on Card "AlarmStatus" & quote & " to buddy " & quote & fld "myNewIMBuddy" on Card "AlarmStatus" & quote & cr into tScript
do tScript as AppleScript
put tScript into fld "BigAppleScriptBox" on Card "AlarmStatus"
-------1----------2---------3---------4---------5---------6---------7---------8--------
end myAppleScript