• 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: AppleScript dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript dictionary


  • Subject: Re: AppleScript dictionary
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 12 Sep 2003 17:06:29 -0600

At 23:34 +0200 9/12/03, Emmanuel wrote:
>At 11:53 AM -0600 12/09/03, Doug McNutt wrote:
>>It would be nice to be able to send a quick email or even an instant message containing the text and ask an unsophisticated user to "run this" by dropping the text file, or the clipboard, on a previously prepared APPL (A nice name would be AS_cc.) that passes the commands to Script Editor.
>
>Do you mean, something like a droplet with:
>
>--------- pseudo-code
>on open theFile
> run script (read theFile)
>end open
>---------
>?

Actually, I was thinking a little bit more than that. And. . . I'll bet you're about to tell me that Smile will do it all. I'd like to drop the text and have the result be a compiled script in APPLet form that can itself accept dropped files for execution. It would be a bit like offering a shell script that needs only a command line with a file path but is intelligible to a typical MUG member and doesn't require that "unthinkable" Terminal APPL

osascript will almost do what you suggest. But come to think of it, someone else has already asked "why are scripts compiled?". Set the execute bit on a TEXT file with a #!/Applications/AppleScript/Script\ Editor and double click it. Why not?

The subject is wrong. I have already started another "Script Editor dictionary" which seems to identify a more immediate problem.

<ftp://ftp.macnauchtan.com/Software/LineEnds/> If and only if you're interested in my recent efforts.

--
--> As a citizen of the USA if you see a federal outlay expressed in $billion then multiply it by 4 to get your share in dollars. <--
_______________________________________________
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: AppleScript dictionary
      • From: Emmanuel <email@hidden>
    • Re: AppleScript dictionary
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Re: AppleScript dictionary (From: Doug McNutt <email@hidden>)
 >Re: AppleScript dictionary (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Script Editor dictionary
  • Next by Date: Re: AppleScript dictionary
  • Previous by thread: Re: AppleScript dictionary
  • Next by thread: Re: AppleScript dictionary
  • Index(es):
    • Date
    • Thread