• 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: Problem running Common Lisp image from AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem running Common Lisp image from AppleScript


  • Subject: Re: Problem running Common Lisp image from AppleScript
  • From: Jon Pugh <email@hidden>
  • Date: Mon, 20 Oct 2003 21:15:29 -0700

At 2:25 PM -0400 10/20/03, Bruce McLaren wrote:
>Our Applescript tries to invoke an MCL lisp image using the explicit name of the image, but the script sometimes starts a random program other than the lisp image. What is weird is that the script *usually* starts the lisp image, as expected, but occasionally, say every 5th or 6th time, does not.

I suspect it's a problem with the creator type of the MCL program. AppleScript tries to launch programs via their creator type and some programs don't have a unique creator type, allowing AppleScript to mistakenly believe there's another copy running.

You don't say whether this is OS X or OS 9, although that shouldn't make a difference if this is really the problem.

So, what is the creator type of the MCL program? I'm betting it's either "????" or " ". You can view the creator type by selecting the file and running this AppleScript from the Script Editor:

-- display the type and creator of every selected file
tell application "Finder"
set sf to selection
end tell
repeat with f in every item of sf
tell application "Finder"
set n to name of f
set ft to file type of f
set ct to creator type of f
end tell
set t to "Name: " & n & return & "Type: 3" & ft & "2, Creator: 3" & ct & "2"
tell application "Finder"
activate
display dialog t buttons {"OK"} default button "OK"
end tell
end repeat


Good luck.

Jon
_______________________________________________
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: Problem running Common Lisp image from AppleScript
      • From: Paul Berkowitz <email@hidden>
References: 
 >Problem running Common Lisp image from AppleScript (From: Bruce McLaren <email@hidden>)

  • Prev by Date: Quark 4.11 mac question
  • Next by Date: Re: Problem running Common Lisp image from AppleScript
  • Previous by thread: Problem running Common Lisp image from AppleScript
  • Next by thread: Re: Problem running Common Lisp image from AppleScript
  • Index(es):
    • Date
    • Thread