works in livecode but not when compiled

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

works in livecode but not when compiled

Post by DavJans » Thu Jul 25, 2019 5:27 pm

This is a tiny little printing application, I wanted to make it easier to print drawings instead of having to navigate folders. It works great while testing in livecode, but after I compile it, it wont work. Anyone have any ideas?
Attachments
Quick Printer.rar
(2.07 KiB) Downloaded 181 times
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10320
Joined: Wed May 06, 2009 2:28 pm

Re: works in livecode but not when compiled

Post by dunbarx » Thu Jul 25, 2019 5:34 pm

Hi.

On a Mac so cannot open the .rar file,

But do you mean "make a standalone" when you say "compile"?

Craig

DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Re: works in livecode but not when compiled

Post by DavJans » Thu Jul 25, 2019 5:54 pm

Yes, i mean make stand alone, attached is a zip.

here is most of the code:

Code: Select all

global t85x11

on mouseUp
   put fld "pcmk" into dpcmk
   put fld "jobn" into djob
   put the folders into joblist
   repeat for each line tLine in joblist
      if tLine contains djob then
         get shell(quote & "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\\AcroRd32.exe" & quote & " /n /s /h /t  " & "\\10.0.15.15\Shop Drawings\Jobs\" & tLine & "\Drawings\Fabrication\" & dpcmk & ".pdf "  & quote & t85x11 & quote)
      end if
   end repeat
   if the hilite of btn "Lock Job" then
      focus on fld "pcmk"
   else
      put empty into fld "jobn"
      focus on fld "jobn"
   end if
   if the hilite of btn "Lock PcMk" then
   else
      put empty into fld "pcmk"
   end if
end mouseUp
Attachments
Quick Printer.zip
(2.17 KiB) Downloaded 201 times
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Re: works in livecode but not when compiled

Post by DavJans » Thu Jul 25, 2019 6:18 pm

Fixed it, sorry, I had deleted this line by accident. Livecode still remembered it but the stand alone wouldn't.

set the defaultfolder to "\\10.0.15.15\Shop Drawings\Jobs\"
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

Post Reply