"Cannot save C and Objective C pointers in script"?
"Cannot save C and Objective C pointers in script"?
- Subject: "Cannot save C and Objective C pointers in script"?
- From: Tim Nelson <email@hidden>
- Date: Fri, 16 Sep 2016 11:18:10 -0700
I came up with what I though would be a more concise way to use and reuse ASOC methods:
on fileManager()
return (current application's NSFileManager's defaultManager())
end fileManager
on contentsOfDirectory(theDirectory)
return (fileManager()'s contentsOfDirectoryAtPath:theDirectory |error|:(missing value)) as list
end contentsOfDirectory
However shortly after creating this a message popped up saying "Cannot save C and Objective C pointers in script". I saved it anyway and tested it. It seems to be working just fine. Is this a fluke or am I committing a serious faux pas?
_______________________________________________
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