Re: Propmpting user to enter Variables
Re: Propmpting user to enter Variables
- Subject: Re: Propmpting user to enter Variables
- From: David Marshall <email@hidden>
- Date: Fri, 13 May 2005 20:48:13 -0400
On Fri, 13 May 2005, Michelle Steiner wrote:
Have you tested the above code in Panther? Your original message had
the name of the folder as one word instead of two words.
If it doesn't work in Panther, here is code that should work in both
Panther and Tiger:
(path to library folder from user domain as text) & "startupitems" as
alias
On my machine (OS X 10.3.8), though there is (well...was) no
StartupItems folder in ~/Library/, the script
set thisthat to path to startup items folder from user domain
tell application "Finder" to make new Finder window to thisthat
not only created one; it also gave the folder the single-word name
"StartupItems."
When I trashed the folder and ran the script a second time, however, I
got the "File some object wasn't found" AppleScript error with the
first line highlighted. Quitting and relaunching Script Editor allowed
me to run the script and create the folder exactly once again.
The Event Log shows "alias
"Omni_Disk:Users:dkmarsh:Library:StartupItems:" as the result of the
"path to startup items from user domain" command; odd, since in other
instances, as expected, I can't _create_ a folder by coercing the path
to an alias.
- - - - -
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden