ListMagic and LC 5.5.3 Problem

Paul Hibbert lc at pbh.on-rev.com
Sun Nov 11 23:57:39 EST 2012


Charles,

I would guess that this is a permissions issue, your code is trying to write to the root Library > Application Support folder, you may have more success writing to the user Library > Application Support folder, just add a ~ before the specialFolderPath, that worked in the test I tried. It also returned the same error when I tried to write to a folder that didn't exist.

IF the platform is "MacOS" then 
     save stack "Special Education" as ("~" & specialFolderPath("asup") & "/Special Education.livecode")

There is also an extra slash in your original path, this didn't throw an error, but appears wrong to me.

I didn't try on Win though.

HTH

Paul

On 2012-11-11, at 11:03 AM, Charles Szasz wrote:

> I just moved my project from Rev 4.0 to LC 5.5.3. My project worked fine with ListMagic using Rev 4.0. And it works fine with LC except when I try to save a list.  I am now getting this error message in the IDE:  An error occurred while saving Special Education List: can't open stack file(2) when I click on a button that has the following script:
> 
> on mouseUp
>   go to card "communications"
>   upDate
> end mouseUp
> 
> on upDate
>   IF the platform is "MacOS" then 
>      save stack "Special Education" as (specialFolderPath("asup")&"/"&"/Special Education.livecode")
>      if the result is not empty then
>         answer error "An error occurred while saving Special Education Student List: "&cr&\
>         the result & "("& sysError() &")"
>      end if
>   end if
> 
> 
>   IF the platform is "win32" then 
>      save stack "Special Education" as (specialFolderPath(35)&"/"&"/Special Education.livecode")
>      if the result is not empty then
>         answer error "An error occurred while saving Special Education Student List: "&cr&the result & "("& sysError() &")"
>      end if
>   end if
> end upDate
> 
> Any suggestions on how to correct this problem? I am assuming that there must be a change in LC 5.5.3.
> 
> Charles Szasz
> cszasz at mac.com
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list