• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I am STILL stuck!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: A funny think happened... (From: Nigel Smith <email@hidden>)
 >Re: A funny think happened... (From: Doug McNutt <email@hidden>)
 >Re: A funny think happened... (From: Jeff Porten <email@hidden>)
 >Re: A funny think happened... (From: Walter Ian Kaye <email@hidden>)
 >Re: A funny think happened... (From: Michelle Steiner <email@hidden>)
 >I am stuck! (From: c w <email@hidden>)
 >Re: I am stuck! (From: Mr Tea <email@hidden>)
 >Re: I am STILL stuck! (From: c w <email@hidden>)

  • Prev by Date: Re: Process whose frontmost *was* true?
  • Next by Date: Re: I am STILL stuck!
  • Previous by thread: Re: I am STILL stuck!
  • Next by thread: Re: I am STILL stuck!
  • Index(es):
    • Date
    • Thread