christian.scalese

Q: Question about Applescript display dialog

hello to everyone, can i do a question?

i would know if anyone know how i can set the size of the dialog display in this code :

set listaNomi to {"ACERBI", "AGOSTINI", "ALBERTAZZI"}
repeat (count of listaNomi) times
     set nomeEstratto to some item of listaNomi
     display dialog nomeEstratto
     set listaNomi to removeFromList(nomeEstratto, listaNomi)
end repeat

on removeFromList(theItem, aList)
     set newList to {}
     repeat with x in aList
          if x as string is not equal to theItem as string then
               set newList to newList & x    
          end if
     end repeat
     return newList
end removeFromList

Well i want set the height and weight of the dialog display, and make it much big

anyone help me? please

MacBook (13-inch Mid 2010), OS X Yosemite (10.10.4)

Posted on Jul 29, 2015 10:30 AM

Close

Q: Question about Applescript display dialog

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by VikingOSX,

    VikingOSX VikingOSX Jul 29, 2015 1:43 PM in response to christian.scalese
    Level 7 (20,544 points)
    Mac OS X
    Jul 29, 2015 1:43 PM in response to christian.scalese

    There is no AppleScript interface to display dialog that allows you to control its size, font characteristics, etc. One could make their own dialog using alternate GUI solutions, including AppleScript/Objective-C, and that would permit customization.

  • by t quinn,Helpful

    t quinn t quinn Jul 30, 2015 9:46 AM in response to christian.scalese
    Level 5 (4,930 points)
    Mac OS X
    Jul 30, 2015 9:46 AM in response to christian.scalese

    Hi christian,

     

    I can change the height like this:

    Screen Shot 2015-07-30 at 10.41.47 AM.png

    set listaNomi to {"ACERBI", "AGOSTINI", "ALBERTAZZI"}

    repeat (count of listaNomi) times

      set nomeEstratto to some item of listaNomi

      display dialog "

     

     

     

     

     

     

     

     

     

     

     

      " & nomeEstratto

      set listaNomi to removeFromList(nomeEstratto, listaNomi)

    end repeat

    on removeFromList(theItem, aList)

      set newList to {}

      repeat with x in aList

      if x as string is not equal to theItem as string then

      set newList to newList & x

      end if

      end repeat

      return newList

    end removeFromList

     

    Between the "" there are many returns.


    quinn

  • by christian.scalese,

    christian.scalese christian.scalese Jul 30, 2015 9:58 AM in response to t quinn
    Level 1 (0 points)
    Jul 30, 2015 9:58 AM in response to t quinn

    Hi, thank you for your solutions, but there is a code for set the text much bigger?

    and i don't understand the "many returns"

     

    Please answer me

    thank you very much

  • by christian.scalese,

    christian.scalese christian.scalese Jul 30, 2015 10:18 AM in response to christian.scalese
    Level 1 (0 points)
    Jul 30, 2015 10:18 AM in response to christian.scalese

    Hi, thank you for your solutions, but there is a code for set the text much bigger?

     

    now i understand the returns

     

    Please answer me

    thank you very much

  • by t quinn,

    t quinn t quinn Jul 30, 2015 11:01 AM in response to christian.scalese
    Level 5 (4,930 points)
    Mac OS X
    Jul 30, 2015 11:01 AM in response to christian.scalese

    Hi christian,

     

    My solution to expand the height of the dialogue is a workaround and a crude one.

     

    I believe VikingOSX that there is no way to control font attributes for the dialogue box from within a script.

     

    I thinkk the best you will do is

    Screen Shot 2015-07-30 at 12.01.24 PM.png

     

    quinn

  • by VikingOSX,Helpful

    VikingOSX VikingOSX Jul 30, 2015 11:43 AM in response to christian.scalese
    Level 7 (20,544 points)
    Mac OS X
    Jul 30, 2015 11:43 AM in response to christian.scalese

    The display commands are part of the AppleScript language guide, and not separate applications that give you access to window and text attributes, as would an actual scriptable application. The extent of configuration is spelled out in the above guide under commands reference.

     

    Just because you can make the display dialog larger with extra return formatting does not mean it is a good thing to do.

  • by christian.scalese,

    christian.scalese christian.scalese Jul 30, 2015 11:50 AM in response to VikingOSX
    Level 1 (0 points)
    Jul 30, 2015 11:50 AM in response to VikingOSX

    Thanks..and can you suggest me a program very easy to make a large display with large text?

     

    i See pasha but i don't know how i make this dislpay

     

    sorry but i'm not good in this

  • by VikingOSX,

    VikingOSX VikingOSX Jul 30, 2015 1:07 PM in response to christian.scalese
    Level 7 (20,544 points)
    Mac OS X
    Jul 30, 2015 1:07 PM in response to christian.scalese

    Once you choose to create your own custom display dialog, and particularly if you are not a developer, then easy is no longer in the equation. The best way to implement a custom dialog is with AppleScript/Objective-C because you have complete control over the finished product. Pashua has examples and HTML documentation in the installer. It also requires that Pashu is installed as a condition of running your custom dialog.

  • by Hiroto,

    Hiroto Hiroto Jul 31, 2015 1:02 PM in response to christian.scalese
    Level 5 (7,276 points)
    Jul 31, 2015 1:02 PM in response to christian.scalese

    Hello

     

    Here's a script to display a primitive dialogue of specified size. It's an AppleScript wrapper of RubyCocoa script.

     

    Under OS X 10.10, you need to manually install RubyCocoa 1.2.0 which supports Ruby 2.0 or later.

     

    http://rubycocoa.sourceforge.net/

    http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.2.0/

     

    Under OS X 10.5 through 10.9, RubyCocoa is part of standard installation and you don't have to install it manually.

     

    Under OS X 10.9, though, /usr/bin/ruby will point to

     

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    

     

    and thus you need to explicitly specify ruby interpreter at:

     

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
    

     

    unless you install RubyCocoa 1.2.0 manually.

     

     

    If you wish, you may rewrite it in PyObjC, which won't require additional installation under OS X 10.10.

     

    Or rewrite it in Objective-C proper, which is most clean and fast.

     

     

    Briefly tested under OS X 10.6.8.

     

    Good luck,

    H

     

     

    set t to "Humpty Dumpty sat on a wall,
    Humptp Dumpty had a great fall;
    All the King's horses and all the king's men;
    Couldn't put the humpty together again."
    
    cocoa_dialogue(t, {|:size|:{600, 300}, |:title|:"Humpty Dumpty"})
    
    on cocoa_dialogue(t, opts)
        (*
            string t : text to display
            record opts : {|:size|:sz, |:title|:ti}
                list sz   : { (integer) width, (integer) height } of dialogue window, measured in points; default = {600, 300}
                string ti : title of window; default = ""
            return string : name of button pressed (OK or Cancel)
        *)
        set opts to opts & {|:size|:{600, 300}, |:title|:""}
        set {{w, h}, ti} to opts's {|:size|, |:title|}
        set args to ""
        repeat with a in {"-t", ti, "-s", w & "," & h, "-e", t}
            set args to args & ("" & a)'s quoted form & space
        end repeat
        do shell script "/usr/bin/ruby -w <<'EOF' - " & args & "
    #   
    #   v0.10
    #   written by Hiroto, 2015-07
    require 'osx/cocoa'
    include OSX
    
    MARGIN_B = 15.0
    MARGIN_R = 15.0
    MARGIN_T = 15.0
    BUTTON_MIN_H = 30.0
    BUTTON_MIN_W = 90.0
    BUTTON_TITLE_H_MARGIN = 16.0
    BUTTON_TITLE_SIZE = 14.0
    BUTTON_TITLE_OK = 'OK'
    BUTTON_TITLE_CANCEL = 'Cancel'
    TEXT_SIZE = 24.0
    
    class AppDelegate < NSObject
        def initWithArguments(args)
            @title, @size, @text = args.values_at(:title, :size, :text)
    
            @win = NSWindow.alloc.objc_send(
                :initWithContentRect, NSMakeRect(0, 0, *@size),
                :styleMask, NSTitledWindowMask | NSMiniaturizableWindowMask, # | NSClosableWindowMask | NSResizableWindowMask,
                :backing, NSBackingStoreBuffered,
                :defer, false)
            @win.setLevel(NSStatusWindowLevel)
            @win.setTitle(@title)
            @win.center
    
            # OK button
            @bt1 = NSButton.alloc.initWithFrame(NSZeroRect)
            @bt1.setTitle(BUTTON_TITLE_OK)
            @bt1.setFont(NSFont.systemFontOfSize(BUTTON_TITLE_SIZE))
            @bt1.setKeyEquivalent(%[\\r])                   # U+000D CARRIAGE RETURN
            @bt1.setButtonType(NSMomentaryLightButton)
            @bt1.setTarget(self)
            @bt1.setAction(:bttnPressed_)
            @bt1.setBezelStyle(NSRoundedBezelStyle)
            @bt1.setFrameSize(
                NSMakeSize(
                    [@bt1.attributedTitle.size.width + BUTTON_TITLE_H_MARGIN * 2, BUTTON_MIN_W].max,
                    BUTTON_MIN_H
                )
            )
            @bt1.setFrameOrigin(
                NSMakePoint(
                    @win.contentView.frame.size.width - @bt1.frame.size.width - MARGIN_R,
                    MARGIN_B
                )
            )
    
            # Cancel button
            @bt2 = NSButton.alloc.initWithFrame(NSZeroRect)
            @bt2.setTitle(BUTTON_TITLE_CANCEL)
            @bt2.setFont(NSFont.systemFontOfSize(BUTTON_TITLE_SIZE))
            @bt2.setKeyEquivalent(%[\\x1b])                 # U+001B ESCAPE
            @bt1.setButtonType(NSMomentaryLightButton)
            @bt2.setTarget(self)
            @bt2.setAction(:bttnPressed_)
            @bt2.setBezelStyle(NSRoundedBezelStyle)
            @bt2.setFrameSize(
                NSMakeSize(
                    [@bt2.attributedTitle.size.width + BUTTON_TITLE_H_MARGIN * 2, BUTTON_MIN_W].max,
                    BUTTON_MIN_H
                )
            )
            @bt2.setFrameOrigin(
                NSMakePoint(
                    @win.contentView.frame.size.width - @bt2.frame.size.width - MARGIN_R - @bt1.frame.size.width,
                    MARGIN_B
                )
            )
    
            # text field
            @tf = NSTextField.alloc.initWithFrame(NSZeroRect)
            @tf.setBordered(false)
            @tf.setDrawsBackground(false)
            @tf.setSelectable(false)
            @tf.setStringValue(@text.chomp)
            @tf.setTextColor(NSColor.brownColor)
            @tf.setFont(NSFont.systemFontOfSize(TEXT_SIZE))
            @tf.sizeToFit       
            @tf.setFrameOrigin(
                NSMakePoint(
                    (@win.contentView.frameSize.width - @tf.frameSize.width) / 2.0,
                    (@win.contentView.frameSize.height - @tf.frameSize.height + @bt1.frameSize.height + MARGIN_B) / 2.0
                )
            )
            
            @win.contentView.addSubview(@tf)
            @win.contentView.addSubview(@bt1)
            @win.contentView.addSubview(@bt2)
            @win.makeFirstResponder(@bt1)
            self
        end
        
        def applicationDidFinishLaunching(notif)
            begin
                if NSApp.respondsToSelector?('setActivationPolicy_')
                    NSApp.setActivationPolicy(NSApplicationActivationPolicyRegular) # OS X 10.6 or later
                end
                NSApp.activateIgnoringOtherApps(true)
                @win.orderFrontRegardless
                @win.displayIfNeeded
            rescue
                NSApp.terminate(self)
                raise
            end
        end
        
        def applicationShouldTerminateAfterLastWindowClosed(app)
            true
        end
        
        def applicationShouldTerminate(sender)
            NSTerminateNow
        end
    
        def bttnPressed(sender)
            puts sender.title
            NSApp.terminate(self)
        end
    end
    
    def parse_options(argv)
        require 'optparse'
        args = {}
        op = OptionParser.new do|o|
            o.banner = %Q[Usage: #{File.basename($0)} [options]]
    
            # default values
            args[:title] = nil          # dialogue window title
            args[:size] = [600,300]     # [width, height] of dialogue window;  unit = point
            args[:text] = nil           # text to be displayed
            
            o.on( '-t', '--title [TITLE]', String, 'Window title.' ) do |t|
                args[:title] = t
            end
            o.on( '-s', '--size [W,H]', Array, 'Dialogue width and height [point].' ) do |s|
                raise OptionParser::InvalidArgument, %Q[#{s.join(',')}] unless s.length == 2
                args[:size] = s.map {|x| x.to_f}
            end
            o.on( '-e', '--text [TEXT]', String, 'Text to be displayed.' ) do |e|
                args[:text] = e
            end
            o.on( '-h', '--help', 'Display this help.' ) do
                puts o
                exit 1
            end
        end
        begin
            op.parse!(argv)
        rescue => ex
            $stderr.puts %Q[#{ex.class} : #{ex.message}]
            $stderr.puts op.help()
            exit 1
        end
        args[:text]  = '' unless args[:text]
        args[:title] = '' unless args[:title]
        $stderr.puts 'Extra argument is ignored : %s' % argv.join(' ') if argv.length > 0
        args
    end
    
    def main(argv)
        args = parse_options(argv)
        app = NSApplication.sharedApplication
        delegate = AppDelegate.alloc.initWithArguments(args)
        app.setDelegate(delegate)
        app.run
    end
    
    main(ARGV)
    EOF"
    end cocoa_dialogue
    
  • by VikingOSX,

    VikingOSX VikingOSX Jul 31, 2015 2:26 PM in response to christian.scalese
    Level 7 (20,544 points)
    Mac OS X
    Jul 31, 2015 2:26 PM in response to christian.scalese

    Hiroto, as usual, thanks for your creative genius.

     

    You should know that RubyCocoa v1.2.0 will not install on OS X 10.10.4, blocks all disks, and states that the version of OS X is too new. I have it installed on Mavericks and it works, and to be fair, the download site does state 10.6 through 10.9. So waiting on them for an update for Yosemite (and soon) El Capitan.

     

    Cheers.

  • by christian.scalese,

    christian.scalese christian.scalese Aug 1, 2015 1:21 AM in response to Hiroto
    Level 1 (0 points)
    Aug 1, 2015 1:21 AM in response to Hiroto

    hi, thank you for you solution, but where i need to put this other string?

     

    set listaNomi to {"ACERBI", "AGOSTINI", "ALBERTAZZI"} repeat (count of listaNomi) times set nomeEstratto to some item of listaNomi display dialog nomeEstratto set listaNomi to removeFromList(nomeEstratto, listaNomi) end repeat on removeFromList(theItem, aList) set newList to {} repeat with x in aList if x as string is not equal to theItem as string then set newList to newList & x end if end repeat return newList end removeFromList

     

    I try you code and i think is work well

    Schermata 2015-08-01 alle 10.20.51.png

  • by Hiroto,Solvedanswer

    Hiroto Hiroto Aug 1, 2015 11:01 AM in response to christian.scalese
    Level 5 (7,276 points)
    Aug 1, 2015 11:01 AM in response to christian.scalese

    Hello

     

    You may replace the display dialog command with cocoa_dialogue() handler as listed below.

     

    Here I have changed the TEXT_SIZE constant in ruby code to 72.0, which makes the text much larger as to be suitable for short string such as person's name in your case. You can change it as you see fit.

     

    Also you can change the text colour by changing this statement -

     

            @tf.setTextColor(NSColor.brownColor)
    

     

    to, for example -

     

            @tf.setTextColor(NSColor.blackColor)
    

     

    etc.

     

     

    * I made very minor revision to the ruby code, that is a) to have removed MARGIN_T constant which was a residue of a test version and b) to have let the help being output to stderr. These changes do not affect the functions.

     

    Hope this may help,

    H

     

     

     

    set listaNomi to {"ACERBI", "AGOSTINI", "ALBERTAZZI"}
    repeat (count of listaNomi) times
        set nomeEstratto to some item of listaNomi
        --display dialog nomeEstratto
        cocoa_dialogue(nomeEstratto, {|:size|:{600, 300}, |:title|:""})
        set listaNomi to removeFromList(nomeEstratto, listaNomi)
    end repeat
    
    on removeFromList(theItem, aList)
        set newList to {}
        repeat with x in aList
            set x to x's contents
            if x ≠ theItem then
                set newList's end to x
            end if
        end repeat
        return newList
    end removeFromList
    
    
    on cocoa_dialogue(t, opts)
        (*
            string t : text to display
            record opts : {|:size|:sz, |:title|:ti}
                list sz   : { (integer) width, (integer) height } of dialogue window, measured in points; default = {600, 300}
                string ti : title of window; default = ""
            return string : name of button pressed (OK or Cancel)
        *)
        set opts to opts & {|:size|:{600, 300}, |:title|:""}
        set {{w, h}, ti} to opts's {|:size|, |:title|}
        set args to ""
        repeat with a in {"-t", ti, "-s", w & "," & h, "-e", t}
            set args to args & ("" & a)'s quoted form & space
        end repeat
        do shell script "/usr/bin/ruby -w <<'EOF' - " & args & "
    #   
    #   v0.10
    #   written by Hiroto, 2015-07
    require 'osx/cocoa'
    include OSX
    
    MARGIN_B = 15.0
    MARGIN_R = 15.0
    BUTTON_MIN_H = 30.0
    BUTTON_MIN_W = 90.0
    BUTTON_TITLE_H_MARGIN = 16.0
    BUTTON_TITLE_SIZE = 14.0
    BUTTON_TITLE_OK = 'OK'
    BUTTON_TITLE_CANCEL = 'Cancel'
    TEXT_SIZE = 72.0
    
    class AppDelegate < NSObject
        def initWithArguments(args)
            @title, @size, @text = args.values_at(:title, :size, :text)
    
            @win = NSWindow.alloc.objc_send(
                :initWithContentRect, NSMakeRect(0, 0, *@size),
                :styleMask, NSTitledWindowMask | NSMiniaturizableWindowMask, # | NSClosableWindowMask | NSResizableWindowMask,
                :backing, NSBackingStoreBuffered,
                :defer, false)
            @win.setLevel(NSStatusWindowLevel)
            @win.setTitle(@title)
            @win.center
    
            # OK button
            @bt1 = NSButton.alloc.initWithFrame(NSZeroRect)
            @bt1.setTitle(BUTTON_TITLE_OK)
            @bt1.setFont(NSFont.systemFontOfSize(BUTTON_TITLE_SIZE))
            @bt1.setKeyEquivalent(%[\\r])                   # U+000D CARRIAGE RETURN
            @bt1.setButtonType(NSMomentaryLightButton)
            @bt1.setTarget(self)
            @bt1.setAction(:bttnPressed_)
            @bt1.setBezelStyle(NSRoundedBezelStyle)
            @bt1.setFrameSize(
                NSMakeSize(
                    [@bt1.attributedTitle.size.width + BUTTON_TITLE_H_MARGIN * 2, BUTTON_MIN_W].max,
                    BUTTON_MIN_H
                )
            )
            @bt1.setFrameOrigin(
                NSMakePoint(
                    @win.contentView.frame.size.width - @bt1.frame.size.width - MARGIN_R,
                    MARGIN_B
                )
            )
    
            # Cancel button
            @bt2 = NSButton.alloc.initWithFrame(NSZeroRect)
            @bt2.setTitle(BUTTON_TITLE_CANCEL)
            @bt2.setFont(NSFont.systemFontOfSize(BUTTON_TITLE_SIZE))
            @bt2.setKeyEquivalent(%[\\x1b])                 # U+001B ESCAPE
            @bt1.setButtonType(NSMomentaryLightButton)
            @bt2.setTarget(self)
            @bt2.setAction(:bttnPressed_)
            @bt2.setBezelStyle(NSRoundedBezelStyle)
            @bt2.setFrameSize(
                NSMakeSize(
                    [@bt2.attributedTitle.size.width + BUTTON_TITLE_H_MARGIN * 2, BUTTON_MIN_W].max,
                    BUTTON_MIN_H
                )
            )
            @bt2.setFrameOrigin(
                NSMakePoint(
                    @win.contentView.frame.size.width - @bt2.frame.size.width - MARGIN_R - @bt1.frame.size.width,
                    MARGIN_B
                )
            )
    
            # text field
            @tf = NSTextField.alloc.initWithFrame(NSZeroRect)
            @tf.setBordered(false)
            @tf.setDrawsBackground(false)
            @tf.setSelectable(false)
            @tf.setStringValue(@text.chomp)
            @tf.setTextColor(NSColor.brownColor)
            @tf.setFont(NSFont.systemFontOfSize(TEXT_SIZE))
            @tf.sizeToFit       
            @tf.setFrameOrigin(
                NSMakePoint(
                    (@win.contentView.frameSize.width - @tf.frameSize.width) / 2.0,
                    (@win.contentView.frameSize.height - @tf.frameSize.height + @bt1.frameSize.height + MARGIN_B) / 2.0
                )
            )
            
            @win.contentView.addSubview(@tf)
            @win.contentView.addSubview(@bt1)
            @win.contentView.addSubview(@bt2)
            @win.makeFirstResponder(@bt1)
            self
        end
        
        def applicationDidFinishLaunching(notif)
            begin
                if NSApp.respondsToSelector?('setActivationPolicy_')
                    NSApp.setActivationPolicy(NSApplicationActivationPolicyRegular) # OS X 10.6 or later
                end
                NSApp.activateIgnoringOtherApps(true)
                @win.orderFrontRegardless
                @win.displayIfNeeded
            rescue
                NSApp.terminate(self)
                raise
            end
        end
        
        def applicationShouldTerminateAfterLastWindowClosed(app)
            true
        end
        
        def applicationShouldTerminate(sender)
            NSTerminateNow
        end
    
        def bttnPressed(sender)
            puts sender.title
            NSApp.terminate(self)
        end
    end
    
    def parse_options(argv)
        require 'optparse'
        args = {}
        op = OptionParser.new do |o|
            o.banner = %Q[Usage: #{File.basename($0)} [options]]
    
            # default values
            args[:title] = nil          # dialogue window title
            args[:size] = [600,300]     # [width, height] of dialogue window;  unit = point
            args[:text] = nil           # text to be displayed
            
            o.on( '-t', '--title [TITLE]', String, 'Window title.' ) do |t|
                args[:title] = t
            end
            o.on( '-s', '--size [W,H]', Array, 'Dialogue width and height [point].' ) do |s|
                raise OptionParser::InvalidArgument, %Q[#{s.join(',')}] unless s.length == 2
                args[:size] = s.map {|x| x.to_f}
            end
            o.on( '-e', '--text [TEXT]', String, 'Text to be displayed.' ) do |e|
                args[:text] = e
            end
            o.on( '-h', '--help', 'Display this help.' ) do
                $stderr.puts o
                exit 1
            end
        end
        begin
            op.parse!(argv)
        rescue => ex
            $stderr.puts %Q[#{ex.class} : #{ex.message}]
            $stderr.puts op.help()
            exit 1
        end
        args[:text]  = '' unless args[:text]
        args[:title] = '' unless args[:title]
        $stderr.puts 'Extra argument is ignored : %s' % argv.join(' ') if argv.length > 0
        args
    end
    
    def main(argv)
        args = parse_options(argv)
        app = NSApplication.sharedApplication
        delegate = AppDelegate.alloc.initWithArguments(args)
        app.setDelegate(delegate)
        app.run
    end
    
    main(ARGV)
    EOF"
    end cocoa_dialogue
    
  • by Hiroto,

    Hiroto Hiroto Aug 1, 2015 11:21 AM in response to Hiroto
    Level 5 (7,276 points)
    Aug 1, 2015 11:21 AM in response to Hiroto

    Here's refined code to handle cancelled dialogue.

     

    set listaNomi to {"ACERBI", "AGOSTINI", "ALBERTAZZI"}
    repeat (count of listaNomi) times
        set nomeEstratto to some item of listaNomi
        --display dialog nomeEstratto
        cocoa_dialogue(nomeEstratto, {|:size|:{600, 300}, |:title|:""})
        if result = "Cancel" then error number -128
        set listaNomi to removeFromList(nomeEstratto, listaNomi)
    end repeat
    
    on removeFromList(theItem, aList)
        set newList to {}
        repeat with x in aList
            set x to x's contents
            if x ≠ theItem then
                set newList's end to x
            end if
        end repeat
        return newList
    end removeFromList
    
    
    on cocoa_dialogue(t, opts)
        -- OMITTED
    end cocoa_dialogue
    

     

     

    EDIT (supplement):

     

    You can change button titles in ruby code. If you change 'Cancel' to 'Annulla', you need to change -

     

        if result = "Cancel" then error number -128
    

     

    to -

     

        if result = "Annulla" then error number -128
    

     

    as well.

  • by christian.scalese,

    christian.scalese christian.scalese Aug 2, 2015 2:38 AM in response to Hiroto
    Level 1 (0 points)
    Aug 2, 2015 2:38 AM in response to Hiroto

    Thank you very much...it is perfect

    thanks a lot

Page 1 of 3 last Next