• 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: Question about PrefsStorageLib and compiling problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about PrefsStorageLib and compiling problem


  • Subject: Re: Question about PrefsStorageLib and compiling problem
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 27 Mar 2019 21:21:53 +0000
  • Thread-topic: Question about PrefsStorageLib and compiling problem

What framework? There's no "use framework …" line in your script. Nor is there a


use script "DefaultsLib" version "1.0.0"

 Is there more to the script that we're seeing?

Have you tried replacing "as string" with "as text"?


-------------------


use AppleScript version "2.5"

use scripting additions

use framework "Appkit"

use framework "Foundation"

use framework "Carbon"

use script "DefaultsLib" version "1.0.0"



set tmpfile to (path to temporary items folder as string) & "exp_" &
(characters 3 thru end of ((random number) as string) as string)

-------------------


What OS version are you using?

-->  Script Debugger 7.0.7 (7A72)

-->  Mac OS 10.11.6 (15G22010)


From: AppleScript-Users
<applescript-users-bounces+ed.stockly=email@hidden<mailto:applescript-users-bounces+ed.stockly=email@hidden>>
 on behalf of "L. Lee" <email@hidden<mailto:email@hidden>>
Date: Wednesday, March 27, 2019 at 2:09 PM
To: AppleScript Digest
<email@hidden<mailto:email@hidden>>
Subject: Re: Question about PrefsStorageLib and compiling problem


EXTERNAL SOURCE


On Mar 27, 2019, at 3:59 PM, Stockly, Ed
<email@hidden<mailto:email@hidden>> wrote:

useAppleScriptversion "2.5"
usescripting additions
settmpfileto (path totemporary items folderasstring) & "exp_" & (characters 3
thru end of ((random number) as string) as string)

—>>Macintosh
HD:private:var:folders:rw:74_k6ty51zx3xnnfbtgmxh0c0000gn:T:TemporaryItems:exp_244797524407

 Interesting.  The above compiles for me in Script Debugger and Script Editor.

What error message are you getting when you try to compile?



I’m in Script Editor 2.11 in Mojave10.14.3.

Here’s what I see: "Expected class name but found application constant or
consideration.” Probably some change in the framework I’m not aware of.

[cid:email@hidden]

Laine Lee

Attachment: Synt.error.jpeg
Description: Synt.error.jpeg

 _______________________________________________
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: Question about PrefsStorageLib and compiling problem
      • From: "L. Lee" <email@hidden>
    • Re: Question about PrefsStorageLib and compiling problem
      • From: Shane Stanley <email@hidden>
References: 
 >Question about PrefsStorageLib and compiling problem (From: Laine Lee <email@hidden>)
 >Re: Question about PrefsStorageLib and compiling problem (From: "Stockly, Ed" <email@hidden>)
 >Re: Question about PrefsStorageLib and compiling problem (From: "L. Lee" <email@hidden>)
 >Re: Question about PrefsStorageLib and compiling problem (From: "Stockly, Ed" <email@hidden>)
 >Re: Question about PrefsStorageLib and compiling problem (From: "L. Lee" <email@hidden>)

  • Prev by Date: Re: Question about PrefsStorageLib and compiling problem
  • Next by Date: Re: Question about PrefsStorageLib and compiling problem
  • Previous by thread: Re: Question about PrefsStorageLib and compiling problem
  • Next by thread: Re: Question about PrefsStorageLib and compiling problem
  • Index(es):
    • Date
    • Thread