• 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: Compile a string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile a string?


  • Subject: Re: Compile a string?
  • From: Emmanuel <email@hidden>
  • Date: Fri, 22 Jun 2001 16:05:51 +0200

At 14:54 +0200 22/06/01, Andy Wylie wrote:
>I've come up against the save without asking problem too (a button script
>which cuts the selection of a Smile sheet} my solution was to create the
>file outside the application

>set x to a new file in (path to "desk") named "foo" of type "osas" with
>creator "VIZF"
>tell application "Smile 1.8.0"
> [...]
> DoOpen(x)
> [...]
> do menu 30 to window "foo" --save
> [...]
>end tell

A shorter way could be (in a "tell Smile" wrapper):
-------------------------------- pseudo-code
set theWind to make new script window -- "with properties ..." if needed
[...]
save theWind in "" & (path to desktop folder) & "foo" -- just use a string
--------------------------------

HTH
Emmanuel


References: 
 >Re: Compile a string? (From: Sun Real <email@hidden>)
 >Re: Compile a string? (From: Andy Wylie <email@hidden>)

  • Prev by Date: Re: Need A Force-Quit
  • Next by Date: Re: Why isn't there a constant called finder?
  • Previous by thread: Re: Compile a string?
  • Next by thread: Re: Compile a string?
  • Index(es):
    • Date
    • Thread