p-shu / flukeformac

Automatically exported from code.google.com/p/flukeformac
0 stars 0 forks source link

Appscript reference issue #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The bug appears to be related to the transition to a unified list that 
contains references to iTunes track. An example log:
{{{
10/09/09 16:43:32 Fluke[1000] Fluke Error
10/09/09 16:43:32 Fluke[1000] Fluke Error
An unexpected error has occurred during execution of the main script

AttributeError: 'ElementByID' object has no attribute 'byindex'

10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000] Traceback (most 
recent call last):
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]   File 
"/Applications/Fluke.app/Contents/Resources/__boot__.py", line 137, in
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]     
_run('flukeapp.py')
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]   File 
"/Applications/Fluke.app/Contents/Resources/__boot__.py", line 134, in _run
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]     execfile(path, 
globals(), globals())
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]   File 
"/Applications/Fluke.app/Contents/Resources/flukeapp.py", line 37, in
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]     
files.itunesAdd()
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]   File 
"fluke/__init__.pyc", line 23, in itunesAdd
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000]   File 
"appscript/reference.pyc", line 615, in __getitem__
10/09/09 16:43:32 [0x0-0x42042].com.kichenko.fluke[1000] AttributeError: 
'ElementByID' object has no attribute 'byindex'
}}}

Original issue reported on code.google.com by dmitryki...@gmail.com on 12 Sep 2009 at 4:03

GoogleCodeExporter commented 8 years ago

Original comment by dmitryki...@gmail.com on 12 Sep 2009 at 4:27

GoogleCodeExporter commented 8 years ago
Just like AppleScript, if returning only a single result, appscript returns a 
reference instead of a list. Fixed.

Original comment by dmitryki...@gmail.com on 13 Sep 2009 at 3:49