Re: 'Make new attachment' dilemma
Re: 'Make new attachment' dilemma
- Subject: Re: 'Make new attachment' dilemma
- From: Brian Christmas <email@hidden>
- Date: Wed, 27 May 2015 21:45:20 +1000
Thanks Shane, I’ll implement that straight away.
Regards
Santa
On 27 May 2015, at 9:40 pm, Shane Stanley < email@hidden> wrote: On 27 May 2015, at 9:28 pm, Brian Christmas < email@hidden> wrote:
Out of desperation I tried adding delays
Delays make more sense in loops, like this:
set pb to current application's NSPasteboard's generalPasteboard() -- get pasteboard repeat with i from 1 to 10 -- some limit tell current application to delay 0.1 set isOK to (pb's |types|()'s containsObject:"public.tiff") if isOK as boolean then exit repeat if i = 10 then -- there's a problem; handle it end if end repeat set theData to pb's dataForType:"public.tiff" -- get tiff data off pasteboard
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden