Re: Is same not the same?
Re: Is same not the same?
- Subject: Re: Is same not the same?
- From: Iurista GmbH <email@hidden>
- Date: Mon, 21 Mar 2016 07:41:41 +0100
Am 21.03.2016 um 01.48 schrieb S. J. Cunningham:
>
> On Mar 20, 2016, at 11:56 AM, Iurista GmbH wrote:
>
>>
>> Am 20.03.2016 um 02.13 schrieb S. J. Cunningham:
>>
>>>
>>> On Mar 18, 2016, at 9:01 AM, Iurista GmbH wrote:
>>>
>>>> I hjave two identical scripts, which do not behave identical. How can that be?
>>>> The Settings: 10.6.8, AppleScript 2.3, a Demo version of FMP 6.03
>>>
>>> [snip]
>>>
>>> SNIP
>>
>> These are two very simple AppleScript scripts, not applets, not AppleScript textfiles (.applescript) nor bundles. One is a copy of the other, therefore, the code should be the same.
>
> If, as you say,they are not AppleScript textfiles (.applescript) nor bundles (.scriptd), then they must be compiled resource fork scripts (".scpt" ). In that case, there is no guarantee that the "code" is the same. When you load them into a Script Editor, the resulting decompile may look the same but that is no guarantee that the compiled code is the same. That's why I suggest you compare the the ".scpt" files using a byte by byte compare such as cmp, a shell program. You could also use cksum to verify that they are the same. I suspect they are not despite the apparent text equivalency in the text editor.
>
> Alternately, if you believe test 2,scpt is an exact copy of text 1.scpt, duplicate test 1,scpt and see if the duplicate copy fails. If not test 1,scpt and test 2.scpt are manifestly _not_ exact copies. The most likely explanation as the that something in the environment changed between compiling test 1.scpt and test 2.scpt.
>
> Steve
Thank you, Steve and Ed.
I have no Script Debugger, as I'm only a hobby scripter and the price of that software is too high for my needs.
And yes, they're indeed normal AppleScript script files (".scpt"), Steve. Unfortunately, I'm not enough familiar enough with shell & Terminal matters to use cmp or cksum.
But what I have learned now from all the responses is that two scriptfiles containing the same text may not necessarily be the same, (hmm, simple lesson, but quite astonishing)
Rudolf
----------------------
Simplicity is the ultimate sophistication
Leonardo da Vinci, (1452-1519)
_______________________________________________
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