• 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
AS Studio and Script Editor Incompatible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AS Studio and Script Editor Incompatible?


  • Subject: AS Studio and Script Editor Incompatible?
  • From: Robert Stretch <email@hidden>
  • Date: Wed, 15 May 2002 07:09:27 +1000

> Hi there,
>
> I wrote this in Script Editor which works absolutely fine:
>
> --Begin Script
>
> do shell script "cat
> /Applications/Themer/Themes/Glass.dlta/main.themescript"
> set thestring to the result
> set v to text ((offset of "<10.1>" in (thestring as string))) thru end
> of (thestring as string)
>
> set theItem to null
> set theParagraph to null
> set theIndex to null
> set theContents to every paragraph of v
> set AppleScript's text item delimiters to "-"
>
> repeat with i from 1 to the number of items in theContents
> set this_item to (text item i of theContents)
> set this_list to every text item in this_item
> if (this_list as string) contains "Extras.rsrc" then
> set theIndex to i
> set theItem to (item 2 of this_list)
> set theParagraph to this_item
> exit repeat
> end if
> end repeat
> set AppleScript's text item delimiters to ""
>
> set AppleScript's text item delimiters to (" -" as string)
> set titem to the second text item of (paragraph theIndex of v as text)
> display dialog "The Extras.rsrc file is called: " default answer titem
>
> --End Script
>
> However; I then try putting this into my AppleScript Studio application
> using an 'on clicked' handler and it errors out. If anybody knows why
> it would only do this is AS Studio and not Script Editor and how to fix
> it I would greatly appreciate it.
>
> Best Wishes
> Robert Stretch
_______________________________________________
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.

  • Prev by Date: Re: Briskets (perl)
  • Next by Date: RE: Briskets (perl)
  • Previous by thread: Re: public vs private? [Re: Parents/Child Scripts]
  • Next by thread: Broken finder script in os X (again)
  • Index(es):
    • Date
    • Thread