Wednesday, August 16, 2017

#1 2017-08-07 08:06:22 pm

brian_donovan
Member
Registered: 2003-11-10
Posts: 139

How to crash an applescript

Hi, this must be the most weird question I have made her, but here it goes...
how can I crash an applescript? I dont mean a “force quit” command, I mean a way of adding text into a file to make it applescript proof, maybe some illegal, corrupted or unsupported charactes that will make any applescript trying to read it to crash! anybody has tried this tongue


Filed under: crash

Offline

 

#2 2017-08-08 09:39:17 am

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2683
Website

Re: How to crash an applescript

brian_donovan wrote:

I mean a way of adding text into a file to make it applescript proof, maybe some illegal, corrupted or unsupported charactes that will make any applescript trying to read it to crash! anybody has tried this tongue



To answer this specific question: AppleScript will never crash here. reading isn't done by AppleScript but the application who loaded the standard script addition and run the read command for you. AppleScript itself is just doing nothing and waiting for the read command to be finished. This application can crash by a faulty read but AppleScript itself will never crash because it was just doing nothing.

I have never seen AppleScript crash but often the application running the AppleScript instance that crashes when it ran an AppleEvent or AEOM accessor callback routine (like a whose clause).

AppleScript can be best compared to an RPC system. In itself it can do almost nothing but relies on built-in and external procedures calls known as AppleEvents. These procedures are not controlled by the script itself by is entirely managed by the system or the application running the script. Therefore it's safe to say that you cannot crash AppleScript.

I know this isn't the answer you were hoping for but this is the closest I can give you.

Offline

 

#3 2017-08-08 10:20:48 am

brian_donovan
Member
Registered: 2003-11-10
Posts: 139

Re: How to crash an applescript

its an answer! thank you! and if I would manage a way of crashing the other application it would prevent the applescript from getting the text from the file! now I will look for ways to crash the other app. thank you! if you have any idea pleas share! big_smile

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)