title: Save as PDF a "Numbers" sheet using applescript
body: <p>I state that I am not a programmer and I have no experience with applescript.
  I try to save as PDF a &quot;Numbers&quot; sheet using an applescripts service because i want
  to start the saving process when i need.</p>
  <pre><code>enter code here
  
  activate application &quot;Numbers&quot;
  tell application &quot;System Events&quot;
      tell process &quot;Numbers&quot;
          keystroke &quot;p&quot; using command down
          delay 0.2
          keystroke &quot;p&quot; using command down
          delay 0.2
                      
      end tell
  end tell
  </code></pre>
  <p>After the keystroke &quot;p&quot; command i have to select  in a pop up the pulls down button &quot;pdf&quot; and select the option &quot;Save as PDF&quot;.
  How i proceed?</p>
  <p><a href="https://i.stack.imgur.com/vnssO.png" rel="nofollow noreferrer">pdf button</a></p>
  <p>Then i will need  in the next pop up to put the value of my variable &quot;nameFile&quot; as the name of the file i want to save.<br />
  And also for this step i don't know how to proceed...</p>