Re: Is same not the same?
Re: Is same not the same?
- Subject: Re: Is same not the same?
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 21 Mar 2016 10:56:03 +0100
> Le 21 mars 2016 à 01:48, S. J. Cunningham <email@hidden> a écrit :
>
>
> 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]
>>>
>>> It is not clear to me from your description if you are recompiling both instances of the script and then running each and getting different results. if so, recompile the first one twice with different names and see if you have the same problem.
>>>
>>> Also, I would use an app other than Text Wrangler to compare the script files. Something like cmp which does a byte by byte comparison rather than just comparing the text. I would also compare the compiled versions.
>>>
>>> Finally, it looks like you are using Rosetta to run a PPC version of Filemaker Pro. I don't know if that might be introducing some issues.
>>>
>>> Your problem reminds me of the old joke "What is the difference between a duck?" :
>>
>> 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
> ------------------
> OS X 10.6.8, AppleScript 2.1.2
Hello Steve
I got lurista's files.
They don't have resource fork.
Most, I don't see resource forks in .scpt files for year. maybe since the delivery of AppleScript 2.
Yvan KOENIG running El Capitan 10.11.3 in French (VALLAURIS, France) lundi 21 mars 2016 10:55:07
_______________________________________________
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