• 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: Strange problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problem


  • Subject: Re: Strange problem
  • From: Ian King <email@hidden>
  • Date: Sun, 01 Aug 2004 23:48:46 +0100

Hi Steve,
I'm still on 9 too (!)
> One of the scripts we ship with our app wasn't working on ONE of our
> tech support person's OS9 machine. Here is the part in question:
>
> property pClientName : "FavFontsPalette" --User pref client identifier.
> property pFontListID : "FontList" --Font list user pref ID.
> property pDefaultFonts : {"Helvetica Regular", "Times Regular"}
local fontList --your new addition
> on run
> tell application "MultiAd Creator Pro"
--
> try
> set fontList to (get user preference from client pClientName with ID
> pFontListID)
on error errorMsg number errorNumber --to get more info here
display dialog errorMsg & return & errorNumber
> set fontList to pDefaultFonts
> end try
--try block is failing, (even the error too, dialog may help)
--fontList was not mentioned before this block,
--hence adding; local fontList fixes that
>
> if fontList is {} then
--try block failed, so no fontList existed.
> set fontList to pDefaultFonts
> end if
> end tell
> end run
>
> When she ran it, it returned an error on the "if fontList is {} then"
> line, saying that fontList wasn't defined. After having her try many
> things, what ended up working was the addition of the line "local
> fontList" at the top of the run handler. Does anybody see a reason why
> it would NOT work on one OS9 machine, and why that would fix it?
Can't get user preference? Not used before?
<snip>

Ian King
OS 9.2.2, AppleScript 1.8.3, CarbonLib 1.6
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Control Scripteditor
  • Next by Date: Re: Font tracking and Dfont and otf information
  • Previous by thread: Timed Start
  • Next by thread: Re: Font tracking and Dfont and otf information
  • Index(es):
    • Date
    • Thread