• 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: Subroutine that works only on the 1st run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Subroutine that works only on the 1st run (From: Eric Schult <email@hidden>)

  • Prev by Date: Re: Ethernet Hardware Address
  • Next by Date: Subroutine that works only on the 1st run
  • Previous by thread: Subroutine that works only on the 1st run
  • Next by thread: Subroutine that works only on the 1st run
  • Index(es):
    • Date
    • Thread