Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direct script vs python problem #11

Closed
dummerfranz opened this issue Mar 8, 2021 · 2 comments
Closed

direct script vs python problem #11

dummerfranz opened this issue Mar 8, 2021 · 2 comments

Comments

@dummerfranz
Copy link

dummerfranz commented Mar 8, 2021

can someone explain to me why this script isnt working in python3?
In InDesign this script is working just fine...

import win32com.client
app = win32com.client.Dispatch('InDesign.Application')
app.activeDocument.dataMergeProperties.selectDataSource('C:/Users/test.csv')

console output:
Missing required parameter "DataSourceFile" for method "SelectDataSource".', None, 0, 0), None)

tried to apply but isnt working this way:

test=app.activeDocument.dataMergeProperties.selectDataSource(DataSourceFile="C:/Users/g.overbeck/Desktop/python/tsptoolexp/flyer/input.csv")

@lohriialo
Copy link
Owner

method names should be start with an upper-case as can be seen from api_reference

@dummerfranz
Copy link
Author

Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants