this site exists for reference purposes for all those interested in learning about the original hardware + software from the late 1980s + early 1990s thanks for visiting
Who | MIDI hardware | Software | TIMELINE | PCI | ISA | ATARI ST | DOS/PC | WIN/PC | MAC | Drums | Synths | Modules |Sequencers | Samplers | Tape Rec | Mix Consoles |
Artists | Recent | VST | ios inst | E-mu | Ensoniq | Akai "S" | Roland "MC" | MPCs | Roland "S" | Drum Machines | Roland JV Addons | early 90s Synths | late 80s synths
guests are encouraged to: REGISTER for permission to  view file attachments + add relevant videos, downloads, resources. (credit your SOURCE!).
to post a youtube video simply paste the url! the embed will be automatically added

Author Topic: Prompt for filename after or before taken a screenshot  (Read 522 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisNova777

  • Administrator
  • Posts: 6282
  • Karma: +20/-0
  • Gender: Male
  • "Vintage MIDI Sequencing + Audio Production"
    • www.oldschooldaw.com | vintage audio production software + hardware info
Prompt for filename after or before taken a screenshot
« on: March 11, 2017, 07:36:00 PM »
https://discussions.apple.com/thread/7287386?start=0&tstart=0

interesting post here on how to use some of the hidden power + potential of scripting used in combiation with ui in osx

APPLESCRIPT!!

Code: [Select]
set f to (choose file name default location ¬
  "/Users/user/Pictures/Screenshots" default name (do shell script "date +'Screenshot-%Y%m%d-%H%M%S.jpg'"))'s POSIX path
do shell script "screencapture -i -P -tjpg " & f's quoted form

Code: [Select]
set n to do shell script "date +'Screen_%Y%m%d_%H%M%S.png'"
tell application "SystemUIServer"
    set f to (choose file name default location (path to desktop) default name n)'s POSIX path
end tell
do shell script "screencapture -i " & f's quoted form