• 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: Smile/Satimage: 'load resource'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smile/Satimage: 'load resource'


  • Subject: Re: Smile/Satimage: 'load resource'
  • From: John Delacour <email@hidden>
  • Date: Wed, 9 Jul 2003 12:24:53 +0100
  • Mac-eudora-version: 6.0a26

At 6:26 am -0400 9/7/03, Gary Lists wrote:

It says...

load resource small integer -- index of the desired resource
type type class -- type of the desired resource
from file specification -- file to read from
[as type class] -- an AppleScript type for the returned result

I have tried...

load resource x of type "TEXT" from mj as text
--><<data ctxt596F7572...3742E0D>>

You want it _as_string_, which is not the same. You don't even need to specify 'as string' in the case of a 'TEXT' resource.


tell application "Finder"
set f to "" & application file id "CSOm" & ":contents:macos:eudora"
end tell
list resources "TEXT" from file f
--> {1002, 1003, 1004, ...
load resource 1002 type "TEXT" from file f
--> "Eudora now is licensed in three ways. This copy is installed in full-featured Sponsored mode; it will display a...


If it's a string list as in this example ...

tell application "Finder"
set f to "" & application file id "CSOm" & ":contents:macos:eudora"
end tell
list resources "STR#" from file f
--> {2800, 5600, 5800, 6000, 6200, ......
load resource 2800 type "STR#" from file f
--> +data STR#00110548454C4F200A4D4149
load resource 2800 type "STR#" from file f as string
--> "MAIL FROM:RCPT TO:DATARSETSENDSOML SAML 

... then you need to parse the string. Satimage does not deal with string lists. X-Commands does, and so do several of the old osaxes.



JD
_______________________________________________
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.

  • Follow-Ups:
    • URL Scripting Addition OS X 10.2.6... BROKEN?
      • From: Jason Bourque <email@hidden>
    • Macjordomo Stuff (was Re: Smile/Satimage: 'load resource')
      • From: Gary Lists <email@hidden>
References: 
 >Smile/Satimage: 'load resource' (From: Gary Lists <email@hidden>)

  • Prev by Date: Illustrator Matrix help needed!
  • Next by Date: QuickTime export
  • Previous by thread: Smile/Satimage: 'load resource'
  • Next by thread: Macjordomo Stuff (was Re: Smile/Satimage: 'load resource')
  • Index(es):
    • Date
    • Thread