Hi,
in my Applescript written With AppleScriptEditor i use Path :
Now in Xcode i want to write these Part in follow ways:
script PDFFilesAppDelegate
property parent : class "NSObject"
property pdfList : {} -- table data of pdf list
property pdfPath : "Macintosh HD:Users:michael:Documents:EDV OCR" -- doesent works
property pdfPath : "Macintosh HD/Users/michael/Documents/EDV OCR" -- doesent works too
set pdfPath to "Macintosh HD/Users/michael/Documents/EDV OCR" -- doesent works too
set pdfPath to "Macintosh HD/Users/michael/Documents/EDV OCR" -- doesent works too
on applicationWillFinishLaunching_(aNotification)
tell application "Finder"
set my pdfList to name of files of pdfPath -- it doesent work
set my pdfList to name of files of home -- this line work very well
end tell
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate_
end script
thanks for help
Michael