• 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: Naming Files from List Ref
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naming Files from List Ref


  • Subject: Re: Naming Files from List Ref
  • From: rich allen <email@hidden>
  • Date: Mon, 2 Sep 2002 14:31:22 -0800

On Monday, Sep 2, 2002, at 12:36 America/Anchorage, Mathew Baker wrote:

Thanks for all the tips. Excuse my lack of knowledge with these things but in each script provided by you kind folks, the data is specified as quoted text in the script.


Matthew,

the following handlers were in the original script that i posted. you will need to change the specific file names

on GetColors()
set colorList to {}
set fRef to open for access file "users:hcir:desktop:rename_proj:color_codes"
try
repeat
set entry to read fRef before return
copy characters 1 thru 3 of entry as string to the end of colorList
copy characters 5 thru -1 of entry as string to the end of colorList
end repeat
end try
close access fRef
return colorList
end GetColors
-- ----------------------------------------------------------------- on GetFileList()
set fRef to open for access file "users:hcir:desktop:rename_proj:input_list"
try
set fileList to {}
repeat
set entry to read fRef before return
copy entry to the end of fileList
end repeat
end try
close access fRef
return fileList
end GetFileList

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

References: 
 >Re: Naming Files from List Ref (From: Mathew Baker <email@hidden>)

  • Prev by Date: re: Naming Files from List Ref
  • Next by Date: Re: substitution of variables
  • Previous by thread: Re: Naming Files from List Ref
  • Next by thread: Re: Naming Files from List Ref
  • Index(es):
    • Date
    • Thread