On 19 Apr 2008, at 3:10 PM, J. A. Wilcox wrote: > Hello all, > > I'm writing with a question about AppleScript and a possible issue > between Tiger and Leopard. > > I had been using the following script (saved as an application) under > Tiger (10.4.11) without any trouble > > tell application "Skim" > set filepath to path of front document > end tell > set filepath to POSIX file filepath > set filepath to Unicode text 1 thru -5 of (filepath as Unicode text) > & ".skim"
BTW, it's better to use something like set AppleScript's text item delimiters to "." set filepath to ((text item 1 thru -2 of filepath) & "skim") as text Christiaan > > tell application "Skim" > save document 1 in filepath as "Skim Notes" > end tell > --return filepath > > I upgraded to Leopard and now the AppleScript complains "Invalid > extension for this file type". > > Can anyone help me with this? I would be very grateful. > > Johnnie Wilcox > > > ================== > Johnnie A. Wilcox > Asst. Professor > English Department > Ohio University > 740-593-9941 > [EMAIL PROTECTED] > ================== > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
