how to detect if a file is a metacard stack or not

Reinhold Venzl-Schubert R.Venzl-Schubert at t-online.de
Wed Dec 21 01:18:40 CST 2005


Hi!

The early bird ...

This morning at 8 clock I have an idea myself:

      if char -3 to -1 of ImportStack is not ".mc" then
      answer "This is not the correct file!" ...

Thanks
Reinhold


> Hi!
>
> I wrote the following script to simplify the selection of a  
> metacard stack to import it into my learning software:
>
>   if the platform is MacOS then
>     answer file "Wählen sie eine Datei zum Importieren aus:" with  
> type "MSTK"
>   end if
>   if the platform is Win32 then
>     answer file "Wählen sie eine Datei zum Importieren aus:" with  
> "*.mc"
>   end if
>
> But when I pack an importfile as a zip, send it to my homepage and  
> load it down again, the learning software don't detect it anymore.  
> I think the type MSTK get lost on the way.
>
> Therefore I threw out  the part   ... with type "MSTK"
>
> But when I try to import a pdf-file for example I get a execution  
> error in this line
>
>   put the effective filename of stack ImportStack into  
> StartMediaFolder
>
> Now I need a script that checks if the file is a metacard stack.
>
> If the ImportStack is not a stack then exit ...
>
> Do anybody know a good script?
>
> Thanks
> Reinhold
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.runrev.com/pipermail/metacard/attachments/20051221/ab3f15e5/attachment.html


More information about the metacard mailing list