Ciao Gianluca e benvenuto nel gruppo.
1. Apri l’app “Comandi Rapidi” sul tuo Mac.
2. Crea un nuovo Comando Rapido e dagli un nome tipo: Esporta foglio Numbers in PDF.
3. Aggiungi un’azione “Chiedi un testo”
• Scrivi una frase tipo: Inserisci il numero del foglio da esportare.
4. Aggiungi un’azione “Esegui AppleScript”.
Dentro incolla questo codice:
on run {input, parameters}
set foglioScelto to input as integer
tell application "Numbers"
activate
tell front document
if foglioScelto > (count of sheets) then
display dialog "Questo documento non ha un foglio numero " & foglioScelto buttons {"OK"}
return
end if
set nomeFile to "Foglio_" & foglioScelto & ".pdf"
set percorso to ((path to desktop as text) & nomeFile)
tell sheet foglioScelto
export to file percorso as PDF
end tell
end tell
end tell
end run
Saluti, Stef@no
spider-mac.com"Guardate la ciambella, non il buco” (David Lynch)