Re: Object types
Re: Object types
- Subject: Re: Object types
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 16 Jul 2002 17:23:54 -0400
- Organization: [very little]
>
Date: Tue, 16 Jul 2002 12:24:52 -0700
>
Subject: Object types
>
From: Michelle Steiner <email@hidden>
>
To: email@hidden
>
>
On Monday, July 15, 2002, at 11:45 AM, Frank Renner wrote:
>
>
> set the source_folder to folder "New Folder"
>
> set item_list to list folder source_folder
>
>
>
> does not. It4s both folders or what?
>
>
You didn't give the full path name to the folder, so the script looks
>
for it in the same folder as the application running the script. If
>
it's not there, you get an error.
>
>
In your previous example, "choose folder" returns the full path name.
>
>
> So what is the object type of a folder and how can I make a string with
>
> a pathname to a folder?
>
>
"Macintosh HD:Document folder:Document 1"
>
>
> Where can I get a type list of all the elements of an applications
>
> directory and how they can be converted into each other?
>
>
They're in the dictionary, and they rarely can be converted into each
>
other.
Besides what Michelle said, you didn't mention if your original code
snippets were enclosed in tell blocks to the Finder. The first one
would work without the Finder because the result of "choose folder" is
an alias, a basic AppleScript object. The commands are all AppleScript
commands or scripting addition commands; again, no Finder involvement.
In the second case it wouldn't work without the Finder because a folder
is a Finder object and would be meaningless to AppleScript itself.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[7/16/02 5:21:41 PM]
_______________________________________________
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.