Re: Beginners question
Re: Beginners question
- Subject: Re: Beginners question
- From: Emmanuel <email@hidden>
- Date: Tue, 19 Mar 2002 20:31:12 +0100
At 7:20 PM +0100 18/3/02, Miklos L. Ranky wrote:
>
>
-choose a folder with a dialog
Use "choose folder". Check the dictionary of the Standard Additions.
>
and put all the files (path) in that folder
>
to a list
Use "list folder". Same dictionary.
>
-how do I access that list
You use the "item" keyword. This is basic AppleScript. I suppose the
on-line help is a good entry point.
>
-how to do string manipulation with a path
Basic AppleScript proposes several commands for that:
"offset of x in y"
"text i thru j of x"
and also, breaking a string into "text items" is very useful:
-----------------
set AppleScript's text item delimiters to {":"}
text item 2 of "Macintosh HD:FolderName:OtherOne:AndSoOn"
-----------------
>
Does anybody know where can I find samples or manuals on this topic
There once used to exist something public named "AppleScript Language
Guide" (ASLG). I don't know for now, sorry. <
http://www.tandb.com.au> used
to propose a fine tutorial.
Emmanuel
_______________________________________________
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.