• 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
Object types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object types


  • Subject: Object types
  • From: email@hidden (Frank Renner)
  • Date: Mon, 15 Jul 2002 20:45:07 +0200

Hi,

I am not a very frequent scripter.

Everytime I start with it again after some time, I have a lot of trouble with complaints like "can4t make ... into ...". When I look into the application directories, I find strange descriptions like "folder, by numeric index, by ID, by name". Still I cannot understand why

set the source_folder to choose folder
set item_list to list folder source_folder

works fine and

set the source_folder to folder "New Folder"
set item_list to list folder source_folder

does not. It4s both folders or what?

When someone tells me the solution, I say "aaaahh, it4s so simple". But sometimes I tried for hours which is pretty much time for a well experienced programmer who has little trouble with other programming languages as I would think about myself.

So what is the object type of a folder and how can I make a string with a pathname to a folder?

Where can I get a type list of all the elements of an applications directory and how they can be converted into each other?

When I read the beginners documentation, it only tells me about converting numbers into strings which is not what I need. Is there some documentation -anywhere- that avoids the trial and error method? Right now I have to look into lots of code snippets and try many things myself which would be unneccessary if there was a more comprehensive "catalog" (or let me keep calling it a "directory") e.g. of the Finder objects and how they can be used.

frank Renner
_______________________________________________
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: Object types
      • From: Emmanuel <email@hidden>
    • Re: Object types
      • From: John Stewart <email@hidden>
  • Prev by Date: Delete file
  • Next by Date: Scripting the Network.prefPane under MacOS X
  • Previous by thread: Re: Using the 'say' command in OS X scripting
  • Next by thread: Re: Object types
  • Index(es):
    • Date
    • Thread