• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EPS to PDF Watch Folder Dilemma - Solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EPS to PDF Watch Folder Dilemma - Solved


  • Subject: EPS to PDF Watch Folder Dilemma - Solved
  • From: Richard Lake <email@hidden>
  • Date: Thu, 11 Mar 2010 19:37:44 +0000

Hi everyone,

Problem solved! No need now Alex, thanks everyone. :-)

After hunting around the net I came across the instructions how to use a standard command line tool that comes with Mac OS X called 'pstopdf'.

wow this was so easy in the end :-)

After doing a do shell script "man pstopdf' I was ready to go:

Here we go a almighty 20 lines of code:

global theWatchedFolders
property theWatchedFolders : {"Boot:Users:richardlake:Downloads:"}
on idle
try
tell application "Finder"
repeat with y from 1 to count of items in theWatchedFolders
set theDetectedItems to every item of (item y of theWatchedFolders as alias)
if theDetectedItems is not equal to {} then
repeat with x from 1 to (count of items in theDetectedItems)
if (item x of theDetectedItems as string) ends with ".eps" then
do shell script "pstopdf " & the POSIX path of (item x of theDetectedItems as alias)
delete item x of theDetectedItems as alias
end if
end repeat
end if
end repeat
end tell
return 1
end try
end idle
 _______________________________________________
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

  • Prev by Date: Re: EPS to PDF Watch Folder Dilemma
  • Next by Date: Re: EPS to PDF Watch Folder Dilemma
  • Previous by thread: Re: EPS to PDF Watch Folder Dilemma
  • Next by thread: Xcode splitter get size/set size
  • Index(es):
    • Date
    • Thread