• 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: "Stockly, Ed" <email@hidden>
  • Date: Thu, 08 Oct 2015 18:51:43 +0000
  • Thread-topic: can’t make current application into type string

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

It may be that it's executing within an application, that doesn't recognize the shell script command (it's an OSAX). 

If so this might work:

 set s to (my do shell script I)


Hi folks, I have a script that works fine locally, but one of my users reports the error

"can’t make current application into type string” when they try to run it. 

I’m guessing the error is coming from the ‘do shell script’ line but I’m struggling to see why or how to resolve it.

Any thoughts much appreciated on the cause or resolution. 

Here’s the script (some strings are pseudo-code; take it as read that it compiles and runs without issue on my own mac):
 
 _______________________________________________
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

  • Follow-Ups:
    • Re: can’t make current application into type string
      • From: 2551 <email@hidden>
References: 
 >can’t make current application into type string (From: 2551 <email@hidden>)

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