Re: on run blocks
Re: on run blocks
- Subject: Re: on run blocks
- From: "Stockly, Ed via AppleScript-Users" <email@hidden>
- Date: Thu, 20 Aug 2020 19:49:41 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=latimes.com; dmarc=pass action=none header.from=latimes.com; dkim=pass header.d=latimes.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0PZG5ujANViNlIAZetCGK0gGkyFT/mWBboeeaKHRBIA=; b=iAAgVDV+OADp08747XC6e1X0m8iCT5/JtQNRnjMo5vx9jGUZCdMm8LU+lyQ0NLTTVZhKuKT7Yg7NB/sV9mjsYyjxbAc5WC8mo6paERIfPpQhG4q4lBUN4bXi5ZFYfioaiEglQ9F/Co5ZiznamNj6yTBZJ7c1prqozzpHvJ9ACyOwzMZ1Kk5p5NeeVz9R8PWUZIj+fEHOlGBKJ2+DPr6AiPwYYi9TdjAwMXzyAEXbVvFI+4QPbTR9JMCMPIKsiBI7agmuONTL4L4nzVwCgb6WaLVATpaLnzI2hQ2w5OZwwZHneCTOjTKE0JF0amkhehDMjOQEifvzYwzPl2dpEunlkA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nrSuk9BhRlauGleVMwy9GG9vIAk4ktrH6WRkofBoSjL4SKNMTNh0BhhzUAkMt1fFol1AC38UA5csUa1SOJhoaqZCZqbjlj9MT64izdG/T+O4GFbohOzht5zuq4FJ0PwtBiyZjvuSEf7Vw40ZRQqQWMgaCfKj4EyXYlgm0h/dntW0M1Yac9RI58+lIxipiqhAny5swy6mCeS0ZxwNRikyv9kARN3YrCZVSz4/NRTCghGHbiAMRqXAtsu0SIC6NXdevLfTGOZb7qPQCT/PyKNMZCskn7pki4TIReSXCJOAyu9NcbmFK6aD1fF0tgvciTmGWilIXa93H9g9BU1hWIeq1w==
- Thread-topic: on run blocks
That is a run handler, and not it's not needed. When it's not present the part
of your script that's not included in any other handlers (the top level) is in
an implicit run handler.
Using on run / end run does not improve or degrade your scripts execution.
As far as I know the only purpose is to help keep your script organized.
On 8/20/20, 12:04 PM, "S. J. Cunningham via AppleScript-Users"
<email@hidden> wrote:
One thing I don’t understand is what the on run block does? Is it
actually needed here? It seems to work just fine without it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >on run blocks (From: Jenni via AppleScript-Users <email@hidden>) |
| >Re: on run blocks (From: "S. J. Cunningham via AppleScript-Users" <email@hidden>) |