• 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: Strange error message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Script Editor
  • Next by Date: telltelltell was[Re: applescript-users digest, Vol 3 #1187 - 13 msgs]
  • Previous by thread: Re: Strange error message
  • Next by thread: Re: Recordable Applications
  • Index(es):
    • Date
    • Thread