• 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: Script Editor vs command line = different results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Editor vs command line = different results


  • Subject: Re: Script Editor vs command line = different results
  • From: Andersen Studley <email@hidden>
  • Date: Thu, 8 Jul 2004 17:52:19 -0700

On Jul 8, 2004, at 4:44 PM, Paul Berkowitz wrote:

On 7/8/04 4:21 PM, "Andersen Studley" <email@hidden> wrote:

This code yields a "Can't make xxx into a file" error, no matter how I
save the script

set theScript to (load script "Users:me:Desktop:scpt:test.scpt")
--[.app | .scptd | .applescript]
run script theScript

1. You're trying to load a string, not a file.
2. If you're hard-coding the file-path like that, you need to begin with the
name of the disk that "Users:" is on


Thanks for the tip. I had thought I didn't need to as the other paths I hard coded (such as the files I'm working on) worked fine without it. I can now run the script from a script, unfortunately it didn't solve my problem.

Any insight, or workaround, as to why executing it from the Script Editor works, whereas any other form of invocation produces a File Not Found error?

Thanks

Andersen Studley
_______________________________________________
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: Script Editor vs command line = different results
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Script Editor vs command line = different results (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Keep a launched app in background
  • Next by Date: Re: AS asking for application on every occasion
  • Previous by thread: Re: Script Editor vs command line = different results
  • Next by thread: Re: Script Editor vs command line = different results
  • Index(es):
    • Date
    • Thread