objective c - How to send a Cocoa Lumberjack log file in email from within an OSX application -
i have been trying send cocoa lumberjack log file through email within mac osx application, using apple script. possible this?
i have problem being able use applescript attachment out of correct folder, able create , send message fine without attachment.
i noticed there entitlements accessing users downloads, pictures, movies, music folder aren't convenient store log files in.
can latest log in objective-c, temporarily write accessible location (e.g. downloads) , attach email there via applescript?
nsarray *logfilepathsarray=[[myfilelogger logfilemanager] sortedlogfilepaths]; nsstring *mylogfilepath=[logfilepathsarray firstobject]; // ... copy downloads folder url
Comments
Post a Comment