If you were to right click on an application and show package  
contents, there would be a file in there called "Info.plist"
On of the keys in the file is "Bundle identifier" which contains  
"com.Apple.TextEdit" for instance.

You can add one to an application if it doesn't have one.


On Nov 9, 2009, at 12:52 PM, Paul Skinner wrote:

> Hello,
>
> get id of application "TextEdit"
> -->"com.apple.TextEdit"
>
> get id of application "applescriptApplication.app"
> -->"aplt"
>
> What is it that causes an applescript application to create a plist  
> and, I assume, thusly be locatable with the...
>
> tell application id "com.apple.TextEdit"
>    make new document
> end tell
>
> ...construct?
>
> thanks,
> Paul
>