• 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
Shell script runs this osascript but errors how to stop the error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell script runs this osascript but errors how to stop the error?


  • Subject: Shell script runs this osascript but errors how to stop the error?
  • From: "Ball, Dan" <email@hidden>
  • Date: Thu, 15 May 2008 21:10:34 -0400
  • Thread-topic: Shell script runs this osascript but errors how to stop the error?

Title: Shell script runs this osascript but errors how to stop the error?
Hi everyone,

I am running 10.5.2 and trying to do the following:

Can someone take a look at this one liner and tell me what is wrong?   I suck at coding and don’t understand why I get the error I am getting.  Wondering if anyone can help me to stop this message from appearing.

I have a shell script that runs monthly and I want it to recreate a file and label it red and I came up with this line to label it but I keep getting an error when running it.
/usr/bin/osascript -e 'Tell application "Finder" to set label index of document file "READ_ME.txt" of disk "Temporary_Storage" to 2'


After running that command here is the error I get.....

2008-05-15 21:03:35.015 osascript[264:10b] Error loading /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions:  dlopen(/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions, 262): no suitable image found.  Did find:
/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions: mach-o, but wrong architecture
osascript: OpenScripting.framework - scripting addition /Library/ScriptingAdditions/QXPScriptingAdditions.osax declares no loadable handlers.
2


The command runs and works but I get that error above.  I don’t think I’m going to worry about it, but if I can stop it from erroring that would be nice.  Just wanted to get other opinions on if its my code or what?!!

Thanks,

Dan
 _______________________________________________
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: Shell script runs this osascript but errors how to stop the error?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: applescript help - simulating Mouse clicks and tricky keyboard shortcuts
  • Next by Date: Re: Shell script runs this osascript but errors how to stop the error?
  • Previous by thread: Re: applescript help - simulating Mouse clicks and tricky keyboard shortcuts
  • Next by thread: Re: Shell script runs this osascript but errors how to stop the error?
  • Index(es):
    • Date
    • Thread