• 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: Request for AppleScript books [and another newbie question]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for AppleScript books [and another newbie question]


  • Subject: Re: Request for AppleScript books [and another newbie question]
  • From: Martin Crisp <email@hidden>
  • Date: Thu, 7 Mar 2002 21:57:21 +1100
  • Organization: Tesseract Computing

On Wed, 6 Mar 2002 22:26:46 +1100 the muse struck Michael Kelly, who
wrote (in message <B8AC4826.80E6%email@hidden>):

> On 3/6/02 6:21 PM, email@hidden <email@hidden> wrote:
>
>>
http://www1.fatbrain.com/search/searchresults.asp?SearchFunction=key&qtex
t=
>> App
>>
>> leScript&Submit.x=17&Submit.y=20
>>
> <snip>
>> =-= Marc
>
> Thanks! I'll be sure to check out those books.
>
> One other question:
>
> I've been looking through the Finder's dictionary and sifting through
> various online tutorials, but I haven't been able to figure out how to get a
> list of files inside a directory, or read and write to a file. Can someone
> point me in the right direction?
>
> Thanks alot,

Look in the Standard Additions dictionary. It has the file
Open/Read/Write commands. Opening an non-existant file makes a file
(untyped in 9.2.2? <mutter>), but the command "New File Name" will
display a save as dialog. [Which doesn't seem to return a flag
indicating if a file of that name exists, nor delete such if the user
indicates it should be overwritten]


and:
set my_filelist to {}
Tell application "finder"
set my_filelist to every item of folder "disk:folder1:subfolder1"
end tell

Have Fun
Martin
--
I have absolutely no reason to complain about "success" with my work;
[...] And yet, from time to time a boundless sense of inferiority
plagues me, a desperate feeling of general failure; how does a person
acquire such bits of lunacy?
- MC Escher

Almost always SMASHed
_______________________________________________
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.

  • Follow-Ups:
    • Re: Request for AppleScript books [and another newbie question]
      • From: Martin Crisp <email@hidden>
References: 
 >Re: Request for AppleScript books [and another newbie question] (From: Michael Kelly <email@hidden>)

  • Prev by Date: Re: Distiller Joboptions
  • Next by Date: Re: Invisible comments (was: Re: Finder Tell Blocks)
  • Previous by thread: Re: Request for AppleScript books [and another newbie question]
  • Next by thread: Re: Request for AppleScript books [and another newbie question]
  • Index(es):
    • Date
    • Thread