Re: Subroutine that works only on the 1st run
Re: Subroutine that works only on the 1st run
- Subject: Re: Subroutine that works only on the 1st run
- From: Andy Wylie <email@hidden>
- Date: Sat, 09 Feb 2002 10:54:56 +1300
on 9/2/02 4:32 AM, Eric Schult at email@hidden wrote:
>
>
(* CREATES A TEXT FILE ON THE DESKTOP THAT LISTS THE FILES ,
>
IN A USER-SPECIFIED FOLDER. ALSO WORKS AS A DROPLET FOR ,
>
MULTIPLE FOLDERS. REQUIRES TANAKA'S OSAX. - ERIC SCHULT *)
>
I don't see anything from TANAKA'S OSAX in there so here's how I'd use
TANAKA'S (and Standard Additions 'info for') which may find easier and
certainly faster...
------------
set thisFolder to choose folder with prompt "Pick a folder:"
set theList to MT List Files thisFolder--subfolders true
set AppleScript's text item delimiters to {return}
set retDelimStr to theList as string
set AppleScript's text item delimiters to ""
MT Write File retDelimStr to file ((path to desktop) & (info for
thisFolder)'s name & ".txt" as string) file type "TEXT" creator type
"????"-- with appending
------------
Read Tanaka's dictionary for more.
_____________________________ Andy
_______________________________________________
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.