
Originally Posted by
Steve Samuels
Got it. I don't Scan for New Files myself anymore, so I've forgotten that it can be the default behavior after opening a library.
I wasn't scanning for new files, but needed to do so because I would put something in the library and then go to find it and couldn't because it hadn't yet been recognized by EF. And since I try to leave the library open all the time, I needed to have something that would automatically from time to time scan for new files. Hence the applescript.
I tried putting in the code:
Code:
tell application "EagleFiler"
if not (exists library document "Data Files.eflibrary") then
open POSIX file "/Users/art/Libraries-EagleFiler/Data Library/Data Files.eflibrary"
else
tell library document "Data Files.eflibrary"
scan for new files
end tell
end if
end tell
But it kept getting a error message that said "missing value" when I would run the script. The Replies button revealed the following:
Code:
tell application "EagleFiler"
exists library document "Data Files.eflibrary"
--> false
open file "Voyager:Users:art:Libraries-EagleFiler:Data Library:Data Files.eflibrary"
--> missing value
end tell
Result:
missing value
I don't know what the missing value is, but this just won't run. And I thought it interesting that I had "open POSTIX file . . ." but the result shows a simple "open file. . . " and changed the "/" to ":"
I think the original that I had works best of anything I've tried thus far, even though it's going to the Finder and I tried eliminating that but kept getting errors. And that original was:
Code:
tell application "EagleFiler"
if not (exists library document "Data Files.eflibrary") then
tell application "Finder"
open file "Data Files.eflibrary" of folder "Data Library" of folder ¬
"Libraries-EagleFiler" of folder "art" of folder "Users" of startup disk
end tell
else
tell library document "Data Files.eflibrary"
scan for new files
end tell
end if
end tell