12 Replies Latest reply on Aug 14, 2017 6:18 AM by johnw54

    Debug iPhone

    johnw54

      I have a print script that branches to either the desktop, iPad or iPhone.  The desktop and iPad work fine and the iPhone does not.  Is there a way to debug on the desktop but make the system thinking that I am using a iPhone so it goes to the iPhone code??

        • 1. Re: Debug iPhone
          philmodjunk

          Don't know a way to do that but You might try a manual print from your iPhone.

          • 2. Re: Debug iPhone
            bigtom

            You can duplicate the script and force it to run the iPhone portion. This may help for certain issues but it will be useless for others.

             

            What is not working exactly?

             

            Printing on iPhone is essentially the same as an iPad. Is there the same OS on the phone and iPad. Running a print with dialogs is also a good way to check things.

            • 3. Re: Debug iPhone
              beverly

              Set Variable ( $$iPhone ; 1 )

              - in the first step.

              In the branch where you test for iPhone, include

              or $$iPhone

              Then your branch will go there. At the end of the script

              Set Variable ( $$iPhone ; "" // clear )

              When completed testing, disable the first step (don't delete). Or change the 1 to "".

              You can use this method for other types of "testing".

              Beverly

              Sent from miPhone

              1 of 1 people found this helpful
              • 4. Re: Debug iPhone
                johnw54

                Hi Beverly... thank you very much.... in the 2nd line     or $$iPhone      am I missing something there?  what should the line of code read?  Sorry (novice here)

                • 5. Re: Debug iPhone
                  beverly

                  You didn't post your script for me to "edit".

                  What is the branching?

                  If [ .....]

                  Else  [.....]

                  Else [....]

                  End If

                  So for example, you use the first IF to test for iPhone, whatever the "test", just add the rest of the formula:

                  or $$iPhone

                  OTOH, if you aren't testing for IPhone in the first step of the IF, you may also need to add

                  and not $$iPhone

                  POST your script, please & and it wll make more sense.

                  Beverly

                  • 6. Re: Debug iPhone
                    jackrodgersjr

                    I haven't read your script but here is a simple method:

                     

                    If(systemplatform=4)  // webdirect

                    ...

                    else if (get(device) = 1  // mac

                    ...

                    else if (get(device) = 2 // windows and probably tables

                    ...

                    else if (get(device) = 3  // ipad

                    ...

                    else if (get(device) =  4 // iphone

                    ...

                    else if (get(device) = 5 // android

                    ...

                    else  // who knows what's to come

                    ...

                    end if

                     

                    This avoids using variables....

                     

                    You can also insert in between ifs for instance the various iPhone screens...

                    • 7. Re: Debug iPhone
                      jackrodgersjr

                      Having reread your question...

                       

                      Why not just log in with an iPhone so you can debug what happens in reality? Set sharing on and then log in.

                       

                      I find it use to use something like this:

                       

                      If (1)

                        use iphone layout or script

                      else

                       

                      If(systemplatform=4)  // webdirect

                      ...

                      else if (get(device) = 1  // mac

                      ...

                      else if (get(device) = 2 // windows and probably tables

                      ...

                      else if (get(device) = 3  // ipad

                      ...

                      else if (get(device) =  4 // iphone

                      ...

                      else if (get(device) = 5 // android

                      ...

                      else  // who knows what's to come

                      ...

                      end if

                       

                      end if

                       

                      Change the 1 to a 0 and the default is used.  When finished delete the if 1 and else and end if. Works for me and maybe not for you.

                      • 8. Re: Debug iPhone
                        johnw54
                        • Perform Script [ “ (0100) Allow User Abort” ]
                        • Perform Script [ “ (0101) Set Error Capture” ]
                        • // Set Variable [ $$iPhone; Value:1 ]
                        • #...............IPAD ....... IPAD ........IPAD............IPAD......IPAD
                        • If [ $$iPhone ]
                        • If [ Get ( AccountPrivilegeSetName )= "[Full Access]" or Get ( AccountPrivilegeSetName )="[Wholesale Users]" ]
                        • If [ PatternCount ( Get ( ApplicationVersion ) ;"iPad") ]
                        • #................................EMAIL (2) or PRINT (3) or CANCEL (1)
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Do you want to print or eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “eMail”, Commit: “No”; Button 3: “Print”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #........................ EMAIL ...........EMAIL ..........EMAIL
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "WHOLESALE or RETAIL?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #......EMAIL .RETAIL................................
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Retail” (STYLES) ]
                        • Halt Script
                        • End If
                        • If [ Get(LastMessageChoice) = 3 ]
                        • #......EMAIL ...........WHOLESALE................................
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Wholesale_Pricelist ]
                        • Export Field Contents [ STYLES::Wholesale_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Wholesale Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Wholesale” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • If [ Get ( LastMessageChoice )=3 ]
                        • #............PRINT .....................................PRINT............PRINT...................
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "RETAIL or WHOLESALE?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #........... PRINT RETAIL
                        • Go to Layout [ “Print Pricelist Retail” (STYLES) ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist ]
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore; No dialog ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Retail” (STYLES) ]
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=3 ]
                        • #....................PRINT......WHOLESALE ................................
                        • Go to Layout [ “Print Pricelist Wholesale” (STYLES) ]
                        • Set Variable [ $Name; Value:STYLES::Wholesale_Pricelist ]
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Wholesale” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • End If
                        • # ............COMPUTER.........................COMPUTER .................COMPUTER....................COMPUTER....
                        • If [ PatternCount ( Get ( ApplicationVersion ) ;"Pro") or PatternCount ( Get ( ApplicationVersion ) ;"Runtime") ]
                        • #EMAIL/DESKTOP OR PRINT OR CANCEL
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Do you want to (eMail / Send to Desktop) or Print?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Print”, Commit: “No”, Button 3: If (PatternCount ( Get ( ApplicationVersion ) ;"Runtime");"";"eMail / Desk"), Commit: “No” ]
                        • #..... CANCEL
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • End If
                        • #PRINT
                        • If [ Get(LastMessageChoice) = 2 ]
                        • #PRINT ........PRINT...........PRINT.....
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "RETAIL or WHOLESALE?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • #..... CANCEL
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • End If
                        • #... PRINT RETAIL
                        • If [ Get ( LastMessageChoice )=2 ]
                        • Go to Layout [ “Pricelist_ Print_Retail” (STYLES) ]
                        • Print [ Current record; All Pages; Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ original layout ]
                        • Halt Script
                        • End If
                        • #...PRINT......WHOLESALE ................................
                        • If [ Get ( LastMessageChoice )=3 ]
                        • Go to Layout [ “Pricelist_Print_Wholesale” (STYLES) ]
                        • Print [ Current record; All Pages; Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ original layout ]
                        • Halt Script
                        • End If
                        • Else
                        • #DESKTOP OR EMAIL OR CANCEL
                        • Show Custom Dialog [ Title: "Desktop or eMail?"; Message: "Would you like to save your PDF to the desktop or attach it to an eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Desktop”, Commit: “No”; Button 3: “eMail”, Commit: “No” ]
                        • #CANCEL
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Go to Layout [ original layout ]
                        • Halt Script
                        • End If
                        • #DESKTOP ........DESKTOP...........DESKTOP.....
                        • If [ Get(LastMessageChoice) = 2 ]
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "RETAIL or WHOLESALE?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • #..... CANCEL
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • End If
                        • #... DESKTOP RETAIL
                        • If [ Get ( LastMessageChoice )=2 ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist ]
                        • Set Variable [ $Path; Value:"file:" & Get(DesktopPath) & $Name ]
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore; No dialog ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Show Custom Dialog [ Title: "PDF Complete!"; Message: "Your PDF is on the desktop under the name " & Quote($Name) & "."; Default Button: “OK”, Commit: “Yes” ]
                        • Go to Layout [ “L190_Pricelist_Styles_Retail_DT” (STYLES) ]
                        • Halt Script
                        • End If
                        • #...DESKTOP......WHOLESALE ................................
                        • If [ Get ( LastMessageChoice )=3 ]
                        • Set Variable [ $Name; Value:STYLES::Wholesale_Pricelist ]
                        • Set Variable [ $Path; Value:"file:" & Get(DesktopPath) & $Name ]
                        • Print Setup [ Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore; No dialog ]
                        • Export Field Contents [ STYLES::Wholesale_Pricelist; “$PATH” ]
                        • Show Custom Dialog [ Title: "PDF Complete!"; Message: "Your PDF is on the desktop under the name " & Quote($Name) & "."; Default Button: “OK”, Commit: “Yes” ]
                        • Go to Layout [ “L191_Pricelist_Styles_Wholesale DT” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • #. EMAIL ...........EMAIL ..........EMAIL
                        • If [ Get ( LastMessageChoice )=3 ]
                        • #WHOLESALE OR RETAIL
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "WHOLESALE or RETAIL?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • #......EMAIL .RETAIL................................
                        • If [ Get ( LastMessageChoice )=2 ]
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “L190_Pricelist_Styles_Retail_DT” (STYLES) ]
                        • Halt Script
                        • End If
                        • #......EMAIL ...........WHOLESALE................................
                        • If [ Get(LastMessageChoice) = 3 ]
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Wholesale_Pricelist ]
                        • Export Field Contents [ STYLES::Wholesale_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Wholesale Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “L191_Pricelist_Styles_Wholesale DT” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • End If
                        • End If
                        • Else
                        • End If
                        • #...............IPHONE ....... IPHONE ........ IPHONE............ IPHONE...... IPHONE
                        • // If [ $$iPhone ]
                        • If [ Get ( AccountPrivilegeSetName )= "[Full Access]" or Get ( AccountPrivilegeSetName )="[Wholesale Users]" ]
                        • If [ PatternCount ( Get ( ApplicationVersion ) ; "Go" ) ]
                        • #................................EMAIL (2) or PRINT (3) or CANCEL (1)
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Do you want to print or eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “eMail”, Commit: “No”; Button 3: “Print”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #........................ EMAIL ...........EMAIL ..........EMAIL
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "WHOLESALE or RETAIL?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #......EMAIL .RETAIL................................
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Retail iPhone” (STYLES) ]
                        • Halt Script
                        • End If
                        • If [ Get(LastMessageChoice) = 3 ]
                        • #......EMAIL ...........WHOLESALE................................
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Wholesale_Pricelist ]
                        • Export Field Contents [ STYLES::Wholesale_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Wholesale Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Wholesale iPhone” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • If [ Get ( LastMessageChoice )=3 ]
                        • #............PRINT .....................................PRINT............PRINT...................
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "RETAIL or WHOLESALE?"; Default Button: “Cancel”, Commit: “No”; Button 2: “Retail”, Commit: “No”; Button 3: “Wholesale”, Commit: “No” ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • #..... CANCEL
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #........... PRINT RETAIL
                        • Go to Layout [ “Print Pricelist Retail” (STYLES) ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist & " Retail Pricelist.pdf" ]
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Retail iPhone” (STYLES) ]
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=3 ]
                        • #....................PRINT......WHOLESALE ................................
                        • Go to Layout [ “Print Pricelist Wholesale” (STYLES) ]
                        • Set Variable [ $Name; Value:STYLES::Wholesale_Pricelist & " Wholesale Pricelist.pdf" ]
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Wholesale iPhone” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • End If
                        • End If
                        • #.....................................IPAD GUEST................................
                        • If [ PatternCount ( Get ( ApplicationVersion ) ;"iPad") ]
                        • If [ Get ( AccountPrivilegeSetName )= "[Retail Users]" ]
                        • Go to Layout [ “Print Pricelist Retail” (STYLES) ]
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Print or eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “eMail”, Commit: “No”; Button 3: “Print”, Commit: “No” ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist & " Retail Pricelist.pdf" ]
                        • End If
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #EMAIL
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Retail” (STYLES) ]
                        • Halt Script
                        • Else
                        • #PRINT
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Retail” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • #.....................................COMPUTER GUEST................................
                        • If [ PatternCount ( Get ( ApplicationVersion ) ;"Pro") or PatternCount ( Get ( ApplicationVersion ) ;"Runtime") ]
                        • If [ Get ( AccountPrivilegeSetName )= "[Retail Users]" ]
                        • #..............................................RETAIL ................................
                        • Go to Layout [ “L190_Pricelist_Styles_Retail_DT” (STYLES) ]
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Save your PDF to the desktop or attach it to an eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “eMail”, Commit: “No”; Button 3: “Desktop”, Commit: “No” ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist & " Retail Pricelist.pdf" ]
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • Else If [ Get ( LastMessageChoice )=2 ]
                        • #EMAIL
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “L190_Pricelist_Styles_Retail_DT” (STYLES) ]
                        • Halt Script
                        • Else
                        • #DESKTOP
                        • Set Variable [ $Path; Value:"file:" & Get(DesktopPath) & $Name ]
                        • Print Setup [ Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore; No dialog ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Show Custom Dialog [ Title: "PDF Complete!"; Message: "Your PDF is on the desktop under the name " & Quote($Name) & "."; Default Button: “OK”, Commit: “Yes” ]
                        • Go to Layout [ “L190_Pricelist_Styles_Retail_DT” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • End If
                        • #.....................................IPHONE GUEST................................
                        • If [ Get ( AccountPrivilegeSetName )= "[Retail Users]" ]
                        • If [ PatternCount ( Get ( ApplicationVersion ) ; "Go" ) ]
                        • Go to Layout [ “Print Pricelist Retail” (STYLES) ]
                        • Show Custom Dialog [ Title: "Pricelist"; Message: "Print or eMail?"; Default Button: “Cancel”, Commit: “No”; Button 2: “eMail”, Commit: “No”; Button 3: “Print”, Commit: “No” ]
                        • Set Variable [ $Name; Value:STYLES::Retail_Pricelist & " Retail Pricelist.pdf" ]
                        • End If
                        • If [ Get(LastMessageChoice) = 1 ]
                        • Halt Script
                        • End If
                        • If [ Get ( LastMessageChoice )=2 ]
                        • #EMAIL
                        • Set Variable [ $PATH; Value:Get ( TemporaryPath ) & STYLES::Retail_Pricelist ]
                        • Export Field Contents [ STYLES::Retail_Pricelist; “$PATH” ]
                        • Send Mail [ Send via E-mail Client; Subject: "Retail Pricelist for the: " & STYLES::Style_Name; Attachment: “$Path” ]
                        • Go to Layout [ “Pricelist Styles Retail iPhone” (STYLES) ]
                        • Halt Script
                        • Else
                        • #PRINT
                        • Print Setup [ Orientation: Landscape; Paper size: 8.5" x 11" ] [ Restore ]
                        • Print [ Current record; All Pages; Orientation: Portrait; Paper size: 8.5" x 11" ] [ Restore: Brother MFC-9970CDW ]
                        • Go to Layout [ “Pricelist Styles Retail iPhone” (STYLES) ]
                        • Halt Script
                        • End If
                        • End If
                        • End If
                        • // Set Variable [ $$iPhone; Value:"" ]
                        • 9. Re: Debug iPhone
                          bigtom

                          I see some If() that I would replace with a Case().

                           

                          One print setup sets landscape and then the print sets back to portrait.

                           

                          Just a quick look at it though.

                          • 10. Re: Debug iPhone
                            beverly

                            Thank you! It was a little hard to follow without the indenting.

                             

                            It looks like you have groups of "if...end if", such as:

                            PatternCount ( Get ( ApplicationVersion ) ;"iPad")

                            PatternCount ( Get ( ApplicationVersion ) ;"Pro") or PatternCount ( Get ( ApplicationVersion ) ;"Runtime")

                            PatternCount ( Get ( ApplicationVersion ) ; "Go" )

                             

                            I'm not sure what is "Go". Is that the iPhone?

                             

                            I think you need to group like this (really simplified!):

                            If ( not $$iPhone )

                                 If ( "iPad" )

                                 If ( "Pro" or "Runtime" )

                                 ... // any other's not iPhone

                            Else

                                 If ( "Go" or $$iPhone ) <== here is where you check for your device or your "over-ride" of the variable being set to 1

                            >     ...

                            >     End If

                            ...

                            End If

                             

                            Beverly

                            • 11. Re: Debug iPhone
                              johnw54

                              Thank you Beverly. I'm leaving on vacation today and will try when I get back.  Thanks for your time.

                               

                              Sent from my iPad

                              • 12. Re: Debug iPhone
                                johnw54

                                Thanks bigtom. I need to rework a bit.

                                 

                                Sent from my iPad