Re: Starting directory for 'choose file'
Re: Starting directory for 'choose file'
- Subject: Re: Starting directory for 'choose file'
- From: Joshua See <email@hidden>
- Date: Mon, 28 Jul 2003 10:36:16 -0500
I originally ignored this hoping somebody else would answer, but...
On Monday, July 7, 2003, at 01:39 AM, Richard Morton wrote:
I just tried it and found that it only works for AS applets and that
the applet must be run first, i.e. that the plist file can be
*changed*, but not *generated* in this way. In other words, the app
has to be run first.
A non-AS mac programmer could probably answer this with more certainty
than I. If you needed to be sure that this existed before you created a
window, it would seem pretty straightforward to use the AS file
commands to create it or defaults in the shell. Much as I dislike
excessive shell use in AS, using defaults would probably be easier.
It would be possible to generate the whole file (using read/write
commands) I guess, but I don't know what the other two entries mean:
These look like window coordinates and sizes, and the key names would
seem to back this up.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleNavServices:ChooseFolder:0:Path</key>
<string>file://localhost/Users/luser/Documents/</string>
<key>AppleNavServices:ChooseFolder:0:Position</key>
<data>
ARoBMw==
The registration point (upper left corner) of the window is 282 pixels
from the top of the screen and 307 pixels from the left side.
</data>
<key>AppleNavServices:ChooseFolder:0:Size</key>
<data>
AAAAAAFeAfM=
The window is 350 pixels high and 499 pixels wide.
</data>
</dict>
</plist>
--
Sincerely,
Joshua See
_______________________________________________
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.