• 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: Beginners question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Beginners question
      • From: Christopher Nebel <email@hidden>
References: 
 >Beginners question (From: "Miklos L. Ranky" <email@hidden>)

  • Prev by Date: How can I send email using AppleScript
  • Next by Date: Re: Newbie question - listing items in the trash
  • Previous by thread: Re: Basic Finder operations (was Re: Beginners question)
  • Next by thread: Re: Beginners question
  • Index(es):
    • Date
    • Thread