hi everybody…
i have been reading quite some on this fantastic site.
i would like to make a script that export the slides as pictures(jpg or gif), exports the notes as text, and then import it all to evernote as a new note.?
is this posible?
ok i have come this far:
set ps_file to choose file with prompt “Please select the PowerPoint file to open”
set {full_name, ext} to {name, name extension} of (get info for ps_file)
set short_name to text 1 through -((count of ext) + 2) of full_name
set ATID to AppleScript’s text item delimiters
set AppleScript’s text item delimiters to {“:”}
set file_path to (text 1 thru text item -2 of (ps_file as string)) & “:”
set AppleScript’s text item delimiters to ATID
set target_file to file_path & short_name
tell application “Microsoft PowerPoint”
activate
tell application “System Events”
tell process “PowerPoint”
if exists window “Project Gallery - New” then
click button “Cancel” of window “Project Gallery - New”
delay 2
tell application “Microsoft PowerPoint” to close presentation 1
end if
end tell
end tell
open ps_file
save active presentation in target_file as save as HTML
close presentation 1 saving no
end tell
tell application “Finder”
delete file target_file
set slide_path to file_path & short_name & “_files”
set the_files to every file of folder slide_path
considering case
repeat with aFile in the_files
if name of aFile does not start with “Slide” then
delete aFile
end if
end repeat
end considering
end tell
tell application “Finder”
set target_file to every file of folder slide_path
tell application “Evernote”
activate
create note with text “noter her” title full_name notebook “importeret” from file target_file
end tell
end tell
but keeps getting a error, saying error "can’t covert «class docf» "Slide0001.gif" of destination…
thanks in advance…
Niklas Kruse