• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is same not the same?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is same not the same?


  • Subject: Re: Is same not the same?
  • From: Iurista GmbH <email@hidden>
  • Date: Sun, 20 Mar 2016 16:56:30 +0100

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.

Step 1
I run the script named "test1", et voilà, I have the desired results: FMP starts, displays it's first window, the Demo button is pressed and FMP ready to work.
Step 2
I run the script named "test1" again, FMP quits as desired.

Step 3
I run the script named "test2", and get an error: FMP starts, displays it's first window, but the Demo button is NOT pressed.
The log shows the following: exists window of application process "Filemaker Pro" 	--> false   wich means line 7 is not working properly
Step 3a
Now if I replace (copy/paste) line 7 with the same line 7 of script "test1", I get the desired result as in step 1

Step 4
I run the script named "test2" again, (FMP is now running): I get an AppleScript-error stating that „System Events“ got an error: „application process "Filemaker Pro"“ can not be set to „true“.
This means two things: First Line 2 is not working properly, because the "else" statement should NOT be executed (FMP IS running!!). Second: line 6 does not execute properly, but produces the aforementionned error.
Now if I replace (copy/paste) line 2 with the same line 2 of script "test1", and line 7 with the same line 6 of script "test1", I get the desired result as in step 2

at Steve: Yes, FMP6 is a PPC version (running only with Rosetta), but the whole procedure I explained here is running with 10.6.8.
I use FMP still for certain DB's which are too complicated and time demanding for conversion. But I use FMP also for training myself to understand some more GUI scripting...

at Yvan: I have sent you the two scripts just a few minutes ago.

Thanks to all  Rudolf









 _______________________________________________
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


  • Follow-Ups:
    • Re: Is same not the same?
      • From: "S. J. Cunningham" <email@hidden>
References: 
 >Is same not the same? (From: Iurista GmbH <email@hidden>)
 >Re: Is same not the same? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Is same not the same?
  • Next by Date: Re: Is same not the same?
  • Previous by thread: Re: Is same not the same?
  • Next by thread: Re: Is same not the same?
  • Index(es):
    • Date
    • Thread