• 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: can’t make current application into type string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can’t make current application into type string


  • Subject: Re: can’t make current application into type string
  • From: 2551 <email@hidden>
  • Date: Fri, 09 Oct 2015 13:25:50 +0700

On 9 Oct 2015, at 01:51, Stockly, Ed <email@hidden> wrote:

 What context is the script being run in? From an application, or a menu? 


Thanks, Ed. It’s running from (a) script editor, which is why I didn’t think it necessary to include a ‘my’, as there’s no other target in the script for it to be confused by. 

I think the error was actually that I was inadvertently reusing the same variable name ’s’. 

In any case, I’ve simplified the commands to just

try
do shell script i
on error
set licReply to licError
end try

display dialog licReply with title “someApp" buttons "OK" default button “OK"

and that’s passed all my tests here. Waiting for the user to get back to me.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >can’t make current application into type string (From: 2551 <email@hidden>)
 > Re: can’t make current application into type string (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: can’t make current application into type string
  • Next by Date: script differences ?
  • Previous by thread: Re: can’t make current application into type string
  • Next by thread: script differences ?
  • Index(es):
    • Date
    • Thread