• 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 Satimage OSAX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about Satimage OSAX


  • Subject: Re: Question about Satimage OSAX
  • From: Philippe Gruchet <email@hidden>
  • Date: Fri, 3 Jan 2003 23:14:51 +0100

From: Steve Thompson <email@hidden>

I'm having a problem with the Satimage OSAX under 10.2.2 ...
put resource (temp as text) to tpath type "TEXT" index solCount with name prefName
put resource (temp as text) to tpath type "TEXT" index solCount with name "Steve"
... this creates a resource with the contents of temp (correct), an index of solCount (correct) and a name of "flat".

Could we take example from my previous post?

-- start script
path to preferences folder from current user folder as text
set fname to alias (result & "Test File" as text)
set m to list resources "TEXT" from fname

repeat with i from (first item of m) to (last item of m) as list
load resource i type "TEXT" from fname as every styled text
end repeat
-- end script

From Satimage's osax:

put resource : write the given resource to the specified file with specified type and id
put resource anything -- the AppleScript data that will be stored in the resource
to file specification -- the destination file
type type class -- the resource type
index small integer -- the resource id
[with name string] -- the resource name


We get:

-- end script
path to preferences folder from current user folder as text
set tpath to alias (result & "Test File" as text)
set m to list resources "TEXT" from tpath
set {aTemp, prefName, solCount} to {"blah blah", "thisName", ((last item of m) + 1)}

put resource aTemp to tpath type "TEXT" index solCount with name prefName
-- end script

Just swing with your data & variables thru so many repeat statements that you need.

(Works really fine here, X.2.3, Satimage osaxen v2.4.6)

HTH

Regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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: osascript problems
  • Next by Date: Re: Modifications and Variables
  • Previous by thread: Question about Satimage OSAX
  • Next by thread: Re: Question about Satimage OSAX
  • Index(es):
    • Date
    • Thread