Re: Strange error message
Re: Strange error message
- Subject: Re: Strange error message
- From: Philippe Gruchet <email@hidden>
- Date: Thu, 2 Jan 2003 06:25:57 +0100
Steve Thompson <email@hidden> :
set fname to (path to current user folder as text)
set fname to fname & "Preferences:Test File"
set m to list resources "TEXT" from file fname
Satimage osaxen has great features for rez manipulations:
list resources : return the list of the ids of the resources of the
specified type stored in the specified file
list resources type class -- type of desired resources
from file specification -- file to read from
Result : anything -- the list of ids
Try something like:
-- 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 styled text
end repeat
-- end script
Works fine under 10.2.3
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.