Though I love to write applescripts, I do not know how to read dictionaries. I have made several attempts to understand dictionaries but I have failed (Please suggest me some simple but reasonably comprehensive article on dictionaries). I observe scripts, edit them and use them.
I have a simple query.
set ifile to "xyz" as alias
tell application "Finder"
move ifile to desktop
I want to know why “move ifile” works in the above script but “copy ifile” does not work?
“duplicate ifile” does work.
Is there any difference between copy and duplicate?
That’s because the other properties belong to objects higher up in the inheritance list. Bookmark inherits from bookmark item which inherits from item (the base class that all object in AS are derived from). It has only two properties:
item‚n : A scriptable object.
class (type, r/o) : The class of the object.
properties (record) : All of the object's properties.
While the Script Debugger will work fine, and I’m glad it helped you understand, it’s also important that you understand the inheritance of objects. It’s important both in AS and Cocoa and other languages like C++.