Re: I am STILL stuck!
Re: I am STILL stuck!
- Subject: Re: I am STILL stuck!
- From: Mr Tea <email@hidden>
- Date: Fri, 28 May 2004 12:25:48 +0100
On 28 May 2004, at 11747 am, c w wrote:
set myprompt to "blar"
set new_file to (choose file name with prompt myprompt default name
"myshot.mov") as string
--above does not work
I think the problem here may be that the value written to your
'new_file' variable is Unicode text rather than a plain old string
(this is AppleScript's fault, not yours).
To step around this problem, use the following solution to
AppleScript's 'when is a string not a string' confusion (originally
devised by Paul Berkowitz, IIRC).
set myprompt to "blar"
set new_file to (choose file name with prompt myPrompt default name
"myshot.mov") as string
set new_file to (text of ((new_file as string) as record)) as string
Good luck.
Nick
(pp Mr Tea)
_______________________________________________
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.