• 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: osadecompile misfires with 2 Apple supplied scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: osadecompile misfires with 2 Apple supplied scripts


  • Subject: Re: osadecompile misfires with 2 Apple supplied scripts
  • From: Joe <email@hidden>
  • Date: Tue, 2 Sep 2008 08:41:29 -0700

At 1:52 PM +0200 9/1/08, Axel Luttgens wrote:
>... but this one, executed in Terminal:
>
>	osadecompile '/Library/Scripts/Mail Scripts/Import Addresses.scpt'
>
>and this one run in Script Editor:
>
>	do shell script "osadecompile '/Library/Scripts/Mail Scripts/Import Addresses.scpt'"
>
>both work without a glitch.

Those work fine here too.

>
>Just guessing, do you have some third party scripting additions installed?

I did, but removing them made no difference. I don't see anything wrong in this handler either. Perhaps FileMaker is choking on something. I get the same results running the script from Script Editor as well as FileMaker.

Just thought of something. The offending script has a comment at the beginning that looks like this:

(*
Some long comment
*)

the script returns only --> (*

and nothing below that. Maybe FileMaker wants to put the rest into another record(?)

on decompile(thisScript)
 tell application "Finder" to set {theName, modDate} to {name, modification date} of thisScript
 set x to month of modDate as number
 set SmodDate to (x as text) & "/" & day of modDate & "/" &   text -4 thru text item -1 of (year of modDate as text)
 set thePath to thisScript as text
 set poxPath to POSIX path of thisScript
 set qfPoxPath to quoted form of poxPath
 try
  set theScript to do shell script "/usr/bin/osadecompile " & qfPoxPath
  set dataList to {theName, (SmodDate as text), thePath, theScript}
  tell application "FileMaker Pro"
   set newRecord to create new record with data dataList at table "testdb" of database "testdb"
  end tell
 end try
end decompile

I'm just going to put this one in the strange results bin as it appears to work with every other script on my machine. It won't break my fingers to copy - paste two scripts from Script Editor  ;-)

Thanks
Joe
 _______________________________________________
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: osadecompile misfires with 2 Apple supplied scripts
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: osadecompile misfires with 2 Apple supplied scripts (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Problems running applescripts...
  • Next by Date: Re: Dialog command
  • Previous by thread: Re: osadecompile misfires with 2 Apple supplied scripts
  • Next by thread: Re: osadecompile misfires with 2 Apple supplied scripts
  • Index(es):
    • Date
    • Thread