So I have something very simple (using objc-appscript framework):
And even when the documents were recently saved and nothing's been done to them, [realRef modified] is still returning YES...
Any thoughts? Not quite sure what I'm doing wrong here...
Code:
if ([pagesApp isRunning]) {
PGReference *realRef = [pagesApp documents];
if( [realRef modified] ) {
NSLog(@"Doc modified... saving.");
[[realRef save] send];
}
}
And even when the documents were recently saved and nothing's been done to them, [realRef modified] is still returning YES...
Any thoughts? Not quite sure what I'm doing wrong here...