AppleScript "on open" misbehavior -
i have list of jpeg images on local server use applescript droplet resize in photoshop. use "on open" this, strange happens: open in 2 parts.
the files named follows:
0_203.jpg 1_203.jpg 2_203.jpg 3_203.jpg 4_203.jpg 5_203.jpg 6_203.jpg 7_203.jpg 8_203.jpg 9_203.jpg 10_203.jpg 11_203.jpg 12_203.jpg 13_203.jpg 14_203.jpg 15_203.jpg 16_203.jpg 17_203.jpg 18_203.jpg 19_203.jpg 20_203.jpg the script should actions each file in turn, strange happens: breaks files 2 groups , runs script twice. script splits groups this:
1_203.jpg 2_203.jpg 3_203.jpg 4_203.jpg 5_203.jpg 6_203.jpg 7_203.jpg 8_203.jpg 9_203.jpg 10_203.jpg 11_203.jpg 12_203.jpg ...and runs again these files...
0_203.jpg 13_203.jpg 14_203.jpg 15_203.jpg 16_203.jpg 17_203.jpg 18_203.jpg 19_203.jpg 20_203.jpg what hell going on here?
here's test script used debug:
on open myitems set mylist {} set applescript's text item delimiters ":" repeat thisitem in myitems set newitem thisitem string copy newitem end of mylist end repeat display dialog mylist string end open
see question , answers posted here. gave work-around solution.
Comments
Post a Comment