Hi Jacqueline The code is attached below. Hopefully it is fairly clear, but I only program as a hobby for a local dive club so….!
The sources identical between windows and OSX builds. The windows one works fine, the OSX one won't save. Cheers Steve > I have recently bought a macbook air running mountain lion. using the > same live code file and building for mac, the application runs fine > until I try to save. Then the file bane and paths are greyed out and > I cannot save. > > Are there any switches I need to set to allow saving on the mac? ----What save commands are you using? It's likely script-related, can you -----post the segment of code that does the saving? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com -- Create a SAC folder then a SAC/Preferences folder if they don't exist put SACUserFolder & "/SAC" into SACUserFolder if there is no folder SACUserFolder then create Folder SACUserFolder end if Put SACUserFolder & "/Dives" into DivesFolder if there is no folder DivesFolder then create Folder DivesFolder end if -- User to define filename set the defaultFolder to DivesFolder --answer the defaultFolder with "OK" ask file "Save Dive file as:" with the DefaultFolder with filter "SAC File, *.SAC" put it into UserFileName if it is not empty then -- check if already has extension set the itemdelimiter to "." if the number of items in UserFileName is 1 then put UserFileName & ".SAC" into UserFileName else if the last item of UserFileName is not "SAC" then put UserFileName & ".SAC" into UserFileName end if end if -- Save file -- answer UserFileName with "OK" put TheDiveFile into URL ("file:" & UserFileName) if the result is not empty then answer "Sorry there was a problem saving the file. File not saved" with "OK" end if end if _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode