Re: Continuing problem with Satimage OSAX
Re: Continuing problem with Satimage OSAX
- Subject: Re: Continuing problem with Satimage OSAX
- From: Philippe Gruchet <email@hidden>
- Date: Tue, 7 Jan 2003 06:33:24 +0100
After a number of postings I have received some helpful and concise
replies from Philippe Gruchet amongst others.
Glad that my posts brought some helps to you :-)
.. I still cannot fix my problem and this is getting desperate!...
... Unfortunately, the name of the resource is important.
We're often in a jam with details ;)
Can anyone tell me how to stop the "flat" bit from appearing?
It's what I'm looking for with a software that handles TEXT/styl rez.
But I can't reproduce your problem. I don't even understand from where
comes this "flat" rez name!
Don't forget what's the contents of your variables: are they pointing
to string or text data, number, result, list, etc.?
In your script, i is a local variable only used to parse data thru
number of items found in theList.
Seems that [from Andy Wylie (who helped me too for some other AS
topics: thanks Andy!)] is the right issue:
--
set {a, b, c} to {temp, j, i} -- wrong: what's i? probably a string
but, which one???
set {a, b, c} to {temp, j, i's contents}
(*
Answer: i's contents (meaning, contents of i) that is the target name
of item i in theList. ,
In another words, i has to be a 'name as string', that can be a
pre-defined set of strings:
*)
set theList to {"a", "b", "c"}
set i to item 1 of theList
--> result: "a"
--
Your script:
repeat with i in theList
set slocount to slocount + 1
if i is not in templist then
-- This preference has been added
set temp to (item slocount of theSettingsList) as text
display dialog "value: " & temp8 & return & "name: " & i & return &
"Item: " & (item slocount of theSettingsList) & return & "String: " &
(i as string)
set j to ((last item of m) + slocount)
set {a, b, c} to {temp, j, i}
put resource a to tpath type "TEXT" index b with name c
end if
end repeat
I'm running 10.2.3, Dec 2002 Developer CD and Project Builder 2.1
(This is in the main script of an AppleScript Studio script)
Same config here.
HTH
(=> "Hope That Helps")
Kind 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.