• 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
Format of strings when using run script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Format of strings when using run script


  • Subject: Format of strings when using run script
  • From: Jaime Magiera <email@hidden>
  • Date: Tue, 20 May 2003 02:03:51 -0400

It's unclear to me why a straight string will not compile into a script. For example...

set scriptObj to run script "
script
set helloString to \"Hello world\"
display dialog helloString
end script"

returns +script;

However,

set scriptObj to run script "script set helloString to \"Hello world\" display dialog helloString end script"

returns script error

I'm trying to create strings on the fly that can be compiled into scripts and saved to disk. However, the above problem is a big hindrance. Any ideas?

Jaime
_______________________________________________
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.

  • Follow-Ups:
    • Re: Format of strings when using run script
      • From: Paul Berkowitz <email@hidden>
    • Re: Format of strings when using run script - fixed
      • From: Jaime Magiera <email@hidden>
  • Prev by Date: Cascade or Tile Finder windows
  • Next by Date: Re: Format of strings when using run script - fixed
  • Previous by thread: RE: Cascade or Tile Finder windows
  • Next by thread: Re: Format of strings when using run script - fixed
  • Index(es):
    • Date
    • Thread