Inconsistency w/text delimiters in Applescript and AppleScriptObjC

With the lack of a debugger in Xcode for AppleScriptObjC (shame on you, Apple!), I end up writing my functions in Scriptdebugguer and then after testing, I paste them onto my AppleScriptObjC program.

I just found this inconsistency and it annoys me so much that this behaves differently, it’s the same applescript code!!

Here is the function:

on GetSecondsFromTrackTime(trackTime) --assume HH:MM:SS
	set totalSeconds to 0
	set text item delimiters to ":"
	set timeAsList to get every text item of trackTime
        log timeAsList

Here is the result when I pass it as parameter “3:44” in Applescript (a list of two items)

(3, 44)

Here is the result with the code when run in AppleScriptObjC ( a list with 4 items, delimiter included)

2014-03-02 10:42:25.710 iTunes Duplicate Hunter[3276:a00b] (

I haven’t had my coffee, but I doubt it’s in my end of things :frowning:

I guess AppleScriptObjC did not know who the “text” property belonged to. This change did the trick:

set AppleScript's text item delimiters to ":"