On Mar 9, 2007, at 9:37 PM, Robert Woodhead wrote: > OSX/XP behavior different when alias/shortcut is sent to the > application > > http://www.realsoftware.com/feedback/viewreport.php?reportid=gapmrfox > > When a OSX application receives an App.OpenDocument event with an > alias, the item (folderitem) is pre-resolved, and item.alias is > always false. > > When an XP application receives the event with an alias, the item > folderitem is NOT pre-resolved, and item.alias will be true. > > NOTE: in both cases, the alias wasn't double-clicked, but dragged > onto the app icon. > > Either one of these behaviors is incorrect, or this needs to be > documented, because it is actually a gotcha, in particular when your > file happens to be an XML file and you then new XMLDocument(item) -- > because under XP, if the folderitem passed to XMLDocument is a > shortcut, KABOOOOOOM! > > Which leads us to: > > http://www.realsoftware.com/feedback/viewreport.php?reportid=inowqdqq > > The workaround seems to be, in app.OpenDocument > or even better,
#if TargetWin32 then > if item.alias then > > item = GetFolderItem(item.absolutePath) > > end if > #endif :) > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
