Thanks Jason,
Here's the folder script I attached to my Autofile Folder:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
property dialog_timeout : 30 -- set the amount of time before dialogs
auto-answer.
on adding folder items to this_folder after receiving added_item
try
--generate list of PDF files in Auto File folder
tell application "Finder"
set Alist to name of every file of folder this_folder as text
end tell
set thePath to POSIX path of added_item
set AppleScript's text item delimiters to "/"
set thefilename to text item -1 of thePath
--assuming auto file file format adds an underscore (_01) when
duplicating a pdf
set AppleScript's text item delimiters to "_"
set theshortfilename to (text item -1 of thefilename) as text
if theshortfilename is in Alist then
set the alert_message to "This PDF exists, would you like to
see the copy?"
display dialog the alert_message buttons {"Yes", "No"} default
button 2 with icon 1 giving up after dialog_timeout
set the user_choice to the button returned of the result
if user_choice is "Yes" then
tell application "Finder"
activate
open this_folder
reveal the added_item
end tell
end if
end if
end try
end adding folder items to
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
On Jan 11, 2010, at 5:34 PM, Jason Davies wrote:
>
> On 12 Jan 2010, at 01:15, Christiaan Hofman wrote:
>
>>> With the %n[_]0 I end up with duplicates of the same pdf if I accidentally
>>> drag the same pdf into bibdesk a second (or third) time.
>>> This often happens because my Auto File folder has 2,600 pdf files in it.
>
> sounds like a folder action might work if you can get the syntax of searching
> for a file. I don't know if a folder action could interrupt BibDesk's
> operation but it could give you a dialog box alerting you. or (more basic)
> reveal the new file in the Finder so you can see for yourself (ie every time
> you drop a file on BD, it would show you the resulting file. That would be a
> mix of efficiency (no real work for the CPU) and what you need?
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users