• 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 - Update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EPS to PDF Watch Folder Dilemma - Update


  • Subject: EPS to PDF Watch Folder Dilemma - Update
  • From: Richard Lake <email@hidden>
  • Date: Fri, 12 Mar 2010 12:13:59 +0000

Hi everyone,

Just an update on the EPS to PDF script if anyone intends to use it.  The previous version would lock the system because the folder contents
of this samba drive wasn't being refreshed when adding files into the folder from Windows; Finder decided to go on a hard-drive thrashing frenzy requiring
a Force Quit.  By 'touching' the folder(s) we refresh their content.

Job outstanding: If someone can adapt this touching to every item of theWatchedFolders I'd be quietly content!  Atm I am happy to have it working. :)

global theWatchedFolders
property theWatchedFolders : {"Client info:Convert Me:"}
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
delay 10
tell application "Finder"
do shell script "touch " & quoted form of "Volumes/Client info/Convert Me"
end tell
return 1
end try
end idle


Thanks
 
Richard Lake
Marketing Manager

Tel:
 0800 158 3898 | Email: email@hidden

 _______________________________________________
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: Selecting a pop up button value in a Print dialog
  • Next by Date: Re: Selecting a pop up button value in a Print dialog
  • Previous by thread: Rép : Osascripting
  • Next by thread: Learning how to develop iPhone apps
  • Index(es):
    • Date
    • Thread