From AppleScript to SuperCard

35 views
Skip to first unread message

Jerzy Dydak

unread,
Mar 9, 2024, 9:49:51 PMMar 9
to SuperCard Discussion

The following script works

tell application "System Events" 
 set XXX to (list disks) 
 if "Samsung_T1" is in XXX then tell application "SuperCard" 
 beep --send mouseUp to cd button "Samsung_T1" 
 end tell 
 end if 
end tell

but the next one does not

tell application "System Events" 
 set XXX to (list disks) 
 if "Samsung_T1" is in XXX then 
 tell application "SuperCard" 
 beep 
 send mouseUp to cd button "Samsung_T1" 
 end tell 
 end if 
end tell

Why?

I tried changing it using globals but to no avail.

MARK LUCAS

unread,
Mar 10, 2024, 12:00:31 AMMar 10
to via SuperCard Discussion
Remember to keep your scripting dialects separate:

tell application "SuperCard 4.8" to do script "beep" & return & "send mouseUp to cd button \"Samsung_T1\""

-Mark

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supercard-talk/0df0a457-3ab6-4afd-aa4e-d16dad94579en%40googlegroups.com.

Jerzy Dydak

unread,
Mar 10, 2024, 7:39:30 AMMar 10
to SuperCard Discussion
Mark,
Muchias gracias por su ayuda!!!!
Works!! And I spent the whole day yesterday instead of asking you. 
New ways of playing with Applescript and Supercard!!!!
Jerzy

Reply all
Reply to author
Forward
0 new messages